2

my gradle project was build succeed, but when add spoon ,then i got this error (Could not create plugin of type 'AppPlugin')

my gradle version 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'
}
sunhao111999
  • 79
  • 1
  • 6

1 Answers1

0

The minimum supported version Android plugin is 0.8. However there is no good documentation against what Spoon plugin version should be used with what version of Android plugin at the moment. I recommend using the latest versions of both plugins, which will also require newer Gradle version.

P.S. There was a github issue raised by you: https://github.com/stanfy/spoon-gradle-plugin/issues/14. Right? :)

Roman Mazur
  • 3,084
  • 1
  • 20
  • 24