Resolves an android studio project in failded to sync Gradle project ' XXXX ' cause:failed to the find target with hash string ' android-16 ' problem

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.