Couldn't find: com.android.support:support-v4:21.+

So everything worked fine not too long ago, but when I tried to make a full screen activity in Android Studio I get 2 errors.

It looks like this only happens in full screen mode.

  • Could not find: com.android.support:support-v4:21. +
  • Gradle Project sync error. Basic functions (e.g. editing, debugging) will not work correctly.

error images:

http://i.imgur.com/71CQ2zA.png http://i.imgur.com/omoX4mP.png

Build error:

Error: There was a problem configuring project ': app'.

Failed to resolve all dependencies for configuration: app: _debugCompile. Could not find com.android.support:support-v4:21.0.0. Searching in the following places: There were 2 links here, but I had to remove them because I lack a reputation. Required: MyApplication2: Application: undefined

Things I've tried:

Installing new SDKs and Android Studio. Installing new versions of java JDK. (I still need a new one) Google search.

+3


source to share


1 answer


Try the following:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
}

      



And check if the support library and support repository is installed: enter image description here

+6


source







All Articles