更新后 Android Studio 无法构建 [英] Android Studio doesnt build after update

查看:23
本文介绍了更新后 Android Studio 无法构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

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.

推荐答案

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

I recently filed a bug report to Google. According to the thread in the Android developer tools forum this is an issue they can´t directly explain. I think this is as good as an answer we can get untill this bug is adressed by the developers.

这篇关于更新后 Android Studio 无法构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆