Gradle is issuing an error “Could not create plugin of type 'AppPlugin'”

后端 未结 10 693
北荒
北荒 2020-11-29 04:46

I\'m trying to create a simple android project with gradle. I work in a computer with Debian GNU/Linux 7 \'wheezy\'.

I followed the recomendations in Gradle Plugin U

相关标签:
10条回答
  • 2020-11-29 05:32

    Go to dependencies and just change the dependencies classpath to classpath 'com.android.tools.build:gradle:2.0.0-beta6' Rest Gradle will take care. Happy coding :)

    0 讨论(0)
  • 2020-11-29 05:35

    I got this today when running gradle assembleRelease. I had installed the Ubuntu default of gradle-1.4. This didn't work, so I tried the latest gradle-1.12 and got the same issue.

    Downloading and using gradle-1.10 (and matching my gradle-wrapper.properties file to that version) resolved the issue.

    This is with Android Studio 0.5.8.

    0 讨论(0)
  • 2020-11-29 05:39

    Use Gradle 1.9 instead of Gradle 1.10. There is an issue with 1.10 : https://code.google.com/p/android/issues/detail?id=63822

    Also answered here:

    Can't find org.gradle.api.artifacts.result.ResolvedModuleVersionResult when apply Android plugin in Gradle

    0 讨论(0)
  • 2020-11-29 05:42

    You can also get this error if you update your system gradle and forget to update the Android Studio gradle home.

    0 讨论(0)
提交回复
热议问题