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

前端 未结 6 2128
北恋
北恋 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:23

    Add the below to the build.gradle project module:

    // Top-level build file where you can add configuration options common to all sub-projects/modules.

    buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.2.3'
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            jcenter()
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

提交回复
热议问题