Skip to content Skip to sidebar Skip to footer

Android Gradle Project Sync Failed Due To Target Version

Since a new API of Android 6.0 is available in SDK Manager a hint was appeared in application level build.gradle file to update FROM androidTestCompile 'com.android.support:suppor

Solution 1:

Normally it is caused by not having API 23. After updating the SDK to the newer version, it often rewrites build.gradle to the highest API version SDK provided even if you didn't upload it. The easiest way - download API 23.

Solution 2:

I think it may caused by you don't have 23 API, Go to Tools > Android > SDK Manager and check to see if API-23 is installed.

Solution 3:

Try to add a "+" for example: compile 'com.android.support:appcompat-v7:23.+'

You have also to update your Android Studio APIs (as Kun said).

Solution 4:

Yes as others have mentioned you need to install API-23 through the SDK Manager but it's a long list of downloads and if you don't want to install all of them right away, you can just install the one named "SDK Platform" under API-23

Post a Comment for "Android Gradle Project Sync Failed Due To Target Version"