我遷移我的項目從日食到Android工作室,我收到此錯誤:從Eclipse的遷移...錯誤:(1,0)插件ID爲「com.android.application」未找到
Error:(1, 0) Plugin with id 'com.android.application' not found.
我有gradle這個2.2.1和Android工作室的最後一個版本,1.0.2
我的文件:
模塊APP:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.myapp"
minSdkVersion 14
targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
compile 'com.google.android.gms:play-services-ads:6.5.87'
}
}
項目:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
}
allprojects {
repositories {
jcenter()
}
}
gradle這個包裝特性:
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
奇怪。你能發佈你的'gradle/wrapper/gradle-wrapper.properties'文件嗎? – shkschneider
發佈了.......... – NullPointerException
在'buildscript'裏面移動classpath''com.android.tools.build:gradle:1.0.0'' – Tarun