Skip to content Skip to sidebar Skip to footer

Android Gradle Build Fails: Could Not Find Com.google.android:support-v4:r18

EDIT: This issue seemed to disappear by its own somehow, possibly due to the new Gradle build system becoming more mature. I have two separate Android projects: The 1st project i

Solution 1:

You need to install Android Support Repository from SDK manager. After that Gradle will be able to resolve support libraries from ${SDK_HOME}\extras\android\m2repository\.

Solution 2:

make sure you have your local.properties file in main project folder and sdk.dir variable is pointing to Android SDK. (tested on mac)

Solution 3:

You need to install Android Support Repository as madhead says. But in my case it was absent. You should go to the Tools->Manage Add-on Sites... and check all "Google Inc." sites. Then Android Support Repository will appear in the packages list, and you can install it.

Solution 4:

refer to: https://github.com/simpligility/maven-android-sdk-deployer

to download exactly support library

Post a Comment for "Android Gradle Build Fails: Could Not Find Com.google.android:support-v4:r18"