我的 gradle 项目构建成功,但是当添加勺子时,我得到了这个错误(无法创建类型为“AppPlugin”的插件)
我的 gradle 版本 1.9
构建.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
classpath 'com.stanfy.spoon:spoon-gradle-plugin:0.9.+'
}
}
apply plugin: 'android'
apply plugin: 'spoon'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
instrumentTestCompile 'com.jayway.android.robotium:robotium-solo:4.3.1'
instrumentTestCompile 'com.squareup.spoon:spoon-client:1.0.5'
}
最佳答案
Android 插件支持的最低版本为 0.8。然而,目前还没有关于什么版本的 Spoon 插件应该与什么版本的 Android 插件一起使用的好文档。 我建议使用这两个插件的最新版本,这也需要更新的 Gradle 版本。
附言 您提出了一个 github 问题:https://github.com/stanfy/spoon-gradle-plugin/issues/14 .正确的? :)
关于java - 勺子 Gradle : Could not create plugin of type 'AppPlugin' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22346559/