-1

当我在android studio中制作或构建项目时,这些错误来了,请帮忙。我检查了所有库都已连接,除此之外,我注意到在 AndrodManifest.xml 中出现的错误是无法找到 Activity 尽管正确指定

Android Dex: [BookReader] the "--core-library" option to suppress this error message.
Android Dex: [BookReader] If you go ahead and use "--core-library" but are in fact
Android Dex: [BookReader] building an application, then be forewarned that your application
Android Dex: [BookReader] will still fail to build or run, at some point. Please be
Android Dex: [BookReader] prepared for angry customers who find, for example, that your
Android Dex: [BookReader] application ceases to function once they upgrade their operating
Android Dex: [BookReader] system. You will be to blame for this problem.
Android Dex: [BookReader] If you are legitimately using some code that happens to be in a
Android Dex: [BookReader] core package, then the easiest safe alternative you have is to
Android Dex: [BookReader] repackage that code. That is, move the classes in question into
Android Dex: [BookReader] your own package namespace. This means that they will never be in
Android Dex: [BookReader] conflict with core system classes. JarJar is a tool that may help
Android Dex: [BookReader] you in this endeavor. If you find that you cannot do this, then
Android Dex: [BookReader] that is an indication that the path you are on will ultimately
Android Dex: [BookReader] lead to pain, suffering, grief, and lamentation.
Android Dex: [BookReader] 1 error; aborting
4

1 回答 1

0

您正在添加一个库,该库正在添加一些您不应该添加的类。

同样基于所有这些输出行的前缀,您正在使用内部 IntelliJ 构建器而不是新的基于 Gradle 的构建系统进行构建。您应该在线阅读有关使用新构建系统的信息。

于 2013-05-25T07:31:05.760 回答