2

我刚刚更新了 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)

有谁知道如何解决这个问题?我正在考虑返回旧版本,但我想知道这是我的问题还是我不​​是唯一的问题。

4

2 回答 2

8

尝试添加工件时遇到与 IntelliJ 14 相同的问题。删除.idea/artifact文件夹可以解决问题。

于 2014-11-14T16:57:35.657 回答
0

我最近向Google 提交了一份错误报告。根据Android 开发者工具论坛中的帖子,这是他们无法直接解释的问题。我认为这与我们可以得到的答案一样好,直到开发人员解决了这个错误。

于 2013-07-07T15:28:05.227 回答