Android Studio: Plugin with id 'android-library' not found

前端 未结 6 2151
北恋
北恋 2020-11-28 02:31

I\'ve been trying to get ActionBarSherlock to work and having some issue. One issue I\'ve come across is the following message when trying to build it:



        
6条回答
  •  广开言路
    2020-11-28 03:19

    Instruct Gradle to download Android plugin from Maven Central repository.

    You do it by pasting the following code at the beginning of the Gradle build file:

    buildscript {
        repositories {
            mavenCentral()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:1.1.1'
        }
    }
    

    Replace version string 1.0.+ with the latest version. Released versions of Gradle plugin can be found in official Maven Repository or on MVNRepository artifact search.

提交回复
热议问题