升级到Gradle 2.8会破坏我的构建

时间:2015-10-22 10:09:43

标签: android android-studio gradle android-gradle gradlew

我使用Gradle 2.2.1和Android插件1.1.3,我是一个快乐的人。 但是,我决定升级到Gradle 2.8和插件1.3.1,我无法构建我的项目。我得到的只是一个错误说:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
   > java.lang.NoSuchMethodException: com.android.build.gradle.BasePlugin.getLocalVersion()
   > Task with name 'xxxxxxxxx' not found in project ':app'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

每当我尝试从Android Studio和命令行构建时都会发生这种情况。

有什么想法吗?

PS:我的配置使用包装器btw。

0 个答案:

没有答案
相关问题