简体   繁体   English

Android Studio不会在更新后构建

[英]Android Studio doesnt build after update

I have just updated Android Studio to build 130.729444, and my project (which built correctly before the update) has stopped to work, and Android Studio shows me the following error: 我刚刚更新了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)

Anyone know how to solve this? 有谁知道如何解决这个问题? I've thinking about returning to old version, but I want to know if it's my problem or I'm not the only one. 我想回到旧版本,但我想知道这是我的问题还是我不​​是唯一的问题。

Get same issue with IntelliJ 14 when try to add artifact. 尝试添加工件时,使用IntelliJ 14获得相同的问题。 Removing .idea/artifact folder solves issue. 删除.idea / artifact文件夹可以解决问题。

I recently filed a bug report to Google . 我最近向Google提交了一份错误报告 According to the thread in the Android developer tools forum this is an issue they can´t directly explain. 根据Android开发者工具论坛中的帖子,这是一个他们无法直接解释的问题。 I think this is as good as an answer we can get untill this bug is adressed by the developers. 我认为这是一个很好的答案我们可以得到,直到这个错误被开发人员所接受。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM