当我在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
答案 0 :(得分:0)
您正在添加一个库,该库正在添加一些您不应添加的类。
同样基于所有这些输出行的前缀,您使用内部IntelliJ构建器而不是新的基于Gradle的构建系统构建。您应该在线阅读有关使用新构建系统的信息。