Some of the issues and solutions that Eclipse Android projects turn Gradle

Source: Internet
Author: User

  1. Could not find com.android.support:appcompat-v7:21.0.3.

    Reason: Android support Library not installed

    Workaround:

    1. Enter Avd/tools

    2. Execute command Android list sdk-a

    3. Find the serial number in front of the Android support Library from the list, I see 143

    4. Execute command Android update sdk-a-U-T 143

    5. Install see do you accept the license ' android-sdk-license-c81a61d9 ' [y/n]:

    6. Enter Y

    7. v7:21.0.3 This version number to match the version in Sdk/extras/android/m2repository/com/android/support/appcompat-v7

  2. Could not find: ' com.android.tools.build:gradle:2.1.2 '

    1. The reason does not fit the Android SDK build-tools,

    2. Execute command Android list sdk-a

    3. Find the serial number in front of the Android support Library from the list, I see 12

    4. Execute command Android update sdk-a-U-T 12

    5. Install see do you accept the license ' android-sdk-license-c81a61d9 ' [y/n]:

    6. Enter Y

3. Plugin with Id ' Android ' not found

In Project Build.gradle, add the following code

Buildscript {repositories {mavencentral ()} dependencies {classpath ' com.android.tools.build:gradle:2.1.2 '}}




Some of the issues and solutions that Eclipse Android projects turn Gradle

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.