java - 构建android时出错

标签 java android

有几天我曾经成功地构建了 android。 但是从过去的 2-3 天开始,我无法构建它。它给出了一些错误,例如:

packages/apps/Calculator/src/com/android/calculator2/CalculatorDisplay.java:19: cannot access android.content.Context bad class file: android/content/Context.class(android/content:Context.class) unable to access file: corrupted zip file Please remove or make sure it appears in the correct subdirectory of the classpath. import android.content.Context; ^ make: * [out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar] Error 41

最佳答案

您是否尝试过再次下载/或重建? 它可能真的损坏了。

关于java - 构建android时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7486274/

相关文章:

java - <android.arch.lifecycle.ViewModel>> 不能在没有@Provides-annotated 方法的情况下提供

JavaFX TreeView JSON 通过 GSON 导出/导入

java - 如何在我的 Android 应用中实现 7 天免费试用期的年度订阅状态为 'account hold'?

android - 关于 Android M 中的运行时权限模型

android - 如何在按下按钮后更改不同 Activity 的 ImageView 可见性?

android - 代码中的电子邮件和 Android 邮件帐户设置

android - 如何在Android中给出从上到下的动画?

Java 6 : Unsupported @SuppressWarnings ("rawtypes") warning

java - Cassandra Java Driver : How are insert,更新、删除结果报错?

java - RxJava。 Observable.OnSubscribe 无法解析为类型