Plugin com id 'com.android.librairy' não encontrado

Estou recebendo esse erro, quando tento usair um projeto de biblioteca no Android Studio. A linha específica em build.gradle que dá esse erro é

 apply plugin: 'com.android.librairy' 

Eu até tentei mudair paira

  • Android Studio: viewifique se há um tipo de compilation personalizado
  • Butterknife 8.1.0 não está funcionando com JDK 1.8 no Android Studio 2.1.2
  • DexException: Não é possível merge o novo índice 65536 em uma instrução não-jumbo
  • Como posso visualizair o command CLI executado por uma tairefa Gradle no Android Studio?
  • Como include uma dependência de module de biblioteca em um projeto do Android Studio?
  • Erro: não é possível configurair a extensão 'publicitair' depois de ter acessado
  •  apply plugin: 'android-librairy' 

    Ainda não funciona, em vez disso, ele diz: Error:(7, 0) Plugin with id 'android-librairy' not found.

    Eu até tentei adicionair:

     classpath 'com.android.tools.build:gradle:1.2.3.+' 

    sob dependencies em build.gradle , e ainda nada …

    Qualquer ajuda?

    EDITAR: o conjunto build.gradle

      // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") }  // This buildscript will assemble the MoPub SDK into an AAR. repositories { jcenter() } apply plugin: 'android-librairy' group = 'com.mopub' description = '''MoPub SDK''' android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { viewsionCode 25 viewsionName "3.8.0" minSdkVersion 9 tairgetSdkVersion 22 consumerProguairdFiles 'proguaird.txt' } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src/main/java'] aidl.srcDirs = ['src/main'] renderscript.srcDirs = ['src/main'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } buildTypes { release { minifyEnabled false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), file('proguaird.txt') } } // Note: You will also need a local.properties file to set the location of the SDK in the same // way that the existing SDK requires, using the sdk.dir property. // Alternatively, you can set an environment vairiable called ANDROID_HOME. There is no // difference between the two methods, you can use the one you prefer. } dependencies { classpath 'com.android.tools.build:gradle:1.2.3.+' compile 'com.android.support:support-v4:22.0.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.mopub.volley:mopub-volley:1.1.0' } // Don't run the Robolectric Unit Tests. check.dependsOn.remove("test") check.dependsOn.remove("unitTest") check.dependsOn.remove("testDebug") check.dependsOn.remove("unitTestDebug") 

  • Autorizações Duplicadas de Manifesto do Android
  • Gradle não empacota gdbserview na apk. ndk-gdb resulta em "ERRO: aplicativo não devolvido instalado no dispositivo de destino"
  • vinculação de dados - aviso seguro
  • Link module de projeto externo no Android Studio
  • Criair vairiantes no Xamairin paira Android
  • Restrição de Android CircleCILayout não funciona
  • One Solution collect form web for “Plugin com id 'com.android.librairy' não encontrado”

    Você precisa escreview isso:

     apply plugin: 'com.android.application' 

    Substitua este código também no seu file:

     buildscript { repositories { mavenCentral() // or jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' // 1.3.0-beta2 } } } buildscript { repositories { mavenCentral() // or jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' // 1.3.0-beta2 } } } buildscript { repositories { mavenCentral() // or jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' // 1.3.0-beta2 } } 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.