[英]Gradle Android project build
I have the following script and when i try to run gradle from terminal i get the error "Could not create plugin of type 'AppPlugin'." 我有以下脚本,当我尝试从终端运行gradle时,我收到错误“无法创建类型'AppPlugin'的插件。”
Here is the application https://github.com/Estimote/Android-SDK/tree/master/DistanceDemo 这是应用程序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')
}
The 0.6.* plugin requires Gradle 1.8 The 0.7.* plugin requires Gradle 1.9 0.6。*插件需要Gradle 1.8 0.7。*插件需要Gradle 1.9
Make sure you use the right version. 确保使用正确的版本。
This demo https://github.com/Estimote/Android-SDK/tree/master/Demos should be invoked with Gradle Wrapper. 应使用Gradle Wrapper调用此演示https://github.com/Estimote/Android-SDK/tree/master/Demos 。 There is a script ./gradlew that should be used in order to use proper Gradle version.
有一个脚本./gradlew应该用于使用正确的Gradle版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.