我有以下脚本,当我尝试从终端运行gradle时,我收到错误消息“无法创建类型为‘AppPlugin’的插件”。
下面是应用程序https://github.com/Estimote/Android-SDK/tree/master/DistanceDemo
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 18
targetSdkVersion 18
}
}
dependencies {
compile files('../EstimoteSDK/estimote-sdk-preview.jar', '../EstimoteSDK/guava-15.0.jar')
}发布于 2014-01-02 03:55:11
0.6.*插件需要Gradle 1.8 0.7.*插件需要Gradle 1.9
请确保使用正确的版本。
发布于 2014-02-17 05:36:29
此演示https://github.com/Estimote/Android-SDK/tree/master/Demos应使用Gradle Wrapper调用。为了使用正确的Gradle版本,应该使用脚本./gradlew。
https://stackoverflow.com/questions/20866982
复制相似问题