【问题标题】:spoon gradle : Could not create plugin of type 'AppPlugin'勺子 gradle:无法创建“AppPlugin”类型的插件
【发布时间】:2014-04-16 07:04:19
【问题描述】:

我的 gradle 项目构建成功,但是当添加勺子时,我得到了这个错误(无法创建类型为“AppPlugin”的插件)

我的 gradle 版本 1.9

build.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'
}

【问题讨论】:

  • 能否包含堆栈跟踪(在调试模式下运行 gradle)?
  • 尝试使用这个插件的不同版本
  • @IWillTryToCodeIt 谢谢,我重试了几次,但仍然出现此错误

标签: java android gradle spoon


【解决方案1】:

Android 插件支持的最低版本为 0.8。但是,目前还没有很好的文档来说明应该使用哪个 Spoon 插件版本和哪个版本的 Android 插件。 我建议使用这两个插件的最新版本,这也需要更新的 Gradle 版本。

附: 您提出了一个 github 问题:https://github.com/stanfy/spoon-gradle-plugin/issues/14。正确的? :)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-04
    • 1970-01-01
    相关资源
    最近更新 更多