Android Studio不会在更新后构建

时间:2013-07-07 09:46:27

标签: java android android-studio

我刚刚更新了Android Studio以构建130.729444,我的项目(在更新之前正确构建)已停止工作,Android Studio向我显示以下错误:

Internal error: (java.lang.AssertionError) Unexpected node Android Packaging; nodes=[Module 'MyApplication' production, Module 'MyApplicationProject' production, Module 'MyApplication' tests, Module 'MyApplicationProject' tests, Resources for 'MyApplication' production, Resources for 'MyApplicationProject' production, Resources for 'MyApplication' tests, Resources for 'MyApplicationProject' tests, Artifact 'MyApplication', Android Gradle Build Target]
java.lang.AssertionError: Unexpected node Android Packaging; nodes=[Module 'MyApplication' production, Module 'MyApplicationProject' production, Module 'MyApplication' tests, Module 'MyApplicationProject' tests, Resources for 'MyApplication' production, Resources for 'MyApplicationProject' production, Resources for 'MyApplication' tests, Resources for 'MyApplicationProject' tests, Artifact 'MyApplication', Android Gradle Build Target]
    at com.intellij.util.graph.GraphGenerator.buildOuts(GraphGenerator.java:55)
    at com.intellij.util.graph.GraphGenerator.<init>(GraphGenerator.java:36)
    at com.intellij.util.graph.GraphGenerator.create(GraphGenerator.java:40)
    at org.jetbrains.jps.builders.impl.BuildTargetIndexImpl.initializeChunks(BuildTargetIndexImpl.java:122)
    at org.jetbrains.jps.builders.impl.BuildTargetIndexImpl.getSortedTargetChunks(BuildTargetIndexImpl.java:105)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:578)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:341)
    at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:181)
    at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129)
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:223)
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:130)
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)

任何人都知道如何解决这个问题?我想回到旧版本,但我想知道这是我的问题还是我不​​是唯一的问题。

2 个答案:

答案 0 :(得分:8)

尝试添加工件时,使用IntelliJ 14获得相同的问题。删除 .idea / artifact 文件夹解决了问题。

答案 1 :(得分:0)

我最近提交了bug report to Google。根据{{​​3}}中的帖子,这是一个他们无法直接解释的问题。我认为这是一个很好的答案我们可以得到,直到这个错误被开发人员所接受。