Problems with install Repository and Sync Project when you debug Android studio

Source: Internet
Author: User

We can see that the reported error is "Failed to", which is the compile item in the last paragraph of our build.gradle.

As auto-generated "" is actually compiled according to our minimum version 16来 select 16.x.x and above compilers, because as does not know what the specific compiler version is, so it uses a generic "16.+" to represent more than 16 of the compiler line. This may be the design of the previous as (not verified, just speculation, there are friends who know can provide instructions, thank you!) , which has been deprecated in the new version.

So we're going to find out what version of the SDK compiler the current as is using?

First step: Find the installation path of the SDK, select D:\Users\Administrator\AppData\Local\Android\sdk\build-tools

Can see the highest version of me here is 26.0.3, and then modify Build.gradle in

Android {

Compilesdkversion 26

Buildtoolsversion ' 26.0.3 '


Step Two: Find the installation path of the SDK, select D:\Users\Administrator\AppData\Local\Android\sdk\extras\android\m2repository\com\android\ Support

Can see me here the highest version is 26.0.0-ALPHA1, and then modify compile in "COM.ANDROID.SUPPORT:APPCOMPAT-V7:26.0.0-ALPHA1"

Finally, the compilation succeeds!

Problems with install Repository and Sync Project when you debug Android studio

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: 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.