没有上下文的奇怪的gradle构建错误

时间:2017-03-03 05:04:00

标签: android-studio gradle libgdx

Error:com.android.tools.idea.gradle.util.Projects.lastGradleSyncFailed(Lcom/intellij/openapi/project/Project;)Z

这就是它所说的一切,没有别的。我的gradle sync也没有任何错误,这恰好在我尝试运行程序时发生。有谁知道从哪里开始?谢谢,

编辑:这是我日志中的错误行:

2017-03-07 15:10:00,830 [1055192]INFO - ij.compiler.impl.CompileDriver - java.lang.NoSuchMethodError: com.android.tools.idea.gradle.util.Projects.lastGradleSyncFailed(Lcom/intellij/openapi/project/Project;)Z

EDIT2:这是日志文件

017-03-07 15:10:00,773 [1055135]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS) 
2017-03-07 15:10:00,829 [1055191]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home 
2017-03-07 15:10:00,830 [1055192]   INFO - ij.compiler.impl.CompileDriver - java.lang.NoSuchMethodError: com.android.tools.idea.gradle.util.Projects.lastGradleSyncFailed(Lcom/intellij/openapi/project/Project;)Z
at org.robovm.idea.components.RoboVmBuildProcessParametersProvider.getVMArguments(RoboVmBuildProcessParametersProvider.java:60)
at com.intellij.compiler.server.BuildManager.launchBuildProcess(BuildManager.java:1136)
at com.intellij.compiler.server.BuildManager.lambda$null$11(BuildManager.java:730)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor.runFirstTaskThenPollAndRunRest(BoundedTaskExecutor.java:178)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$000(BoundedTaskExecutor.java:40)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:197)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

2017-03-07 15:10:00,877 [1055239]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2017-03-07 15:10:00,928 [1055290]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED (BUILD PROCESS); Errors: 1; warnings: 0 took 165 ms: 0 min 0sec 

1 个答案:

答案 0 :(得分:0)

看看这个帖子

https://code.google.com/p/android/issues/detail?id=160899

可能正在卸载android-studio-unit-test-plugin解决了这个问题。