Before on GitHub through import module imported a project, the results of an error, the prompt can not find the corresponding version of the SDK xx, and my compilesdkversion is clearly written 23 is not XX, checked for half a day did not solve. Finally, we had to download the SDK for that version.
Today, when we imported the module of Slidingmenu, I encountered this problem again.
Problem:
Cause:failed to find target with hash string ' android-16 ' IN:E:\SONY\ANDROID\SDK
Failed to find Build Tools revision 19.1.0
The version number in the Build.gradle file is 23, not 16, and the version number does not correspond.
There is more than one. gradle file in the project, is it an imported module? Sure enough.
Solve:
The reason is that you import the module also has the Build.gradle file, the computer is missing this file is marked in the Compilesdkversion 16 SDK.
is an issue with the compilesdkversion and buildtoolsversion version number of the Build.gradle file in the imported module , not the app module. The issue with the version number in the Build.gradle file.
Modify the version number in the Build.gradle of the imported module to the version number of the SDK you already have.
Resolves an android studio project in failded to sync Gradle project ' XXXX ' cause:failed to the find target with hash string ' android-16 ' problem