相关疑难解决方法(0)

Gradle发出错误"无法创建'AppPlugin'类型的插件'"

我正在尝试使用gradle创建一个简单的android项目.我在Debian GNU/Linux 7'wheezy'的计算机上工作.

我按照Gradle插件用户指南 - Android工具项目网站中的建议进行了操作,但是它会抛出错误:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/alex/Proyectos/MyLogin/build.gradle' line: 11

* What went wrong:
A problem occurred evaluating root project 'MyLogin'.
> Could not create plugin of type 'AppPlugin'.

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

BUILD FAILED

Total time: 4.817 secs
Run Code Online (Sandbox Code Playgroud)

我遵循了规范:

  • Gradle 1.9
  • 插件0.7
  • SDK 17+(实际上是19)

我也重新启动了一个项目,我展示的结果是由gradle tasks文档中显示的命令发出的. …

android gradle

77
推荐指数
4
解决办法
7万
查看次数

不能跑gradle

我尝试了许多不同的东西,比如升级gradle,但我无法解决这个问题.我无法得到gradle:

./gradlew build --stacktrace
:......
:app:compileDebugJava
An exception has occurred in the compiler (1.8.0_25). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for bolts.Task not found
:app:compileDebugJava FAILED

FAILURE: Build failed with an exception.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJava'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
    at …
Run Code Online (Sandbox Code Playgroud)

android gradle gradlew android-gradle-plugin

4
推荐指数
1
解决办法
1587
查看次数

标签 统计

android ×2

gradle ×2

android-gradle-plugin ×1

gradlew ×1