So, everything was working fine not to long ago but when I tried to make a full screen activity in Android Studio, I get 2 errors.
This appears to only be happening with the full screen activity.
error images:
http://i.imgur.com/71CQ2zA.png http://i.imgur.com/omoX4mP.png
Build error:
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:support-v4:21.0.0. Searched in the following locations: there was 2 links here but I had to remove them because I don't have enough rep. Required by: MyApplication2:app:unspecified
Things I have tried:
Installing fresh SDK and Android Studio. Installing newer versions of java JDK. (I needed a new one anyway) Google search.
Try this:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
}
And check if you install Support Library and Support Repository:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With