在尝试通过我在网络上看到的自己解决这个问题后,我仍然无法弄清楚这意味着什么:
[2013-08-15 23:58:27 - StudioTab] Dx trouble processing "javax/xml/namespace/Qname.class":Ill-advised or mistaken usage of a core class (java.* or javax.*)when not building a core library.This is often due to inadvertently including a core library filein your application's project, when using an IDE (such asEclipse). If you are sure you're not intentionally defining acore class, then this is the most likely explanation of what'sgoing on.However, you might actually be trying to define a class in a corenamespace, the source of which you may have taken, for example,from a non-AndroID virtual machine project. This will mostassuredly not work. At a minimum, it jeopardizes thecompatibility of your app with future versions of the platform.It is also often of questionable legality.If you really intend to build a core library -- which is onlyappropriate as part of creating a full virtual machinedistribution, as opposed to compiling an application -- then usethe "--core-library" option to suppress this error message.If you go ahead and use "--core-library" but are in factbuilding an application, then be forewarned that your applicationwill still fail to build or run, at some point. Please beprepared for angry customers who find, for example, that yourapplication ceases to function once they upgrade their operatingsystem. You will be to blame for this problem.If you are legitimately using some code that happens to be in acore package, then the easIEst safe alternative you have is torepackage that code. That is, move the classes in question intoyour own package namespace. This means that they will never be inconflict with core system classes. JarJar is a tool that may helpyou in this endeavor. If you find that you cannot do this, thenthat is an indication that the path you are on will ultimatelylead to pain, suffering, grIEf, and lamentation.[2013-08-15 23:58:27 - StudioTab] Dx 1 error; aborting[2013-08-15 23:58:27 - StudioTab] Conversion to Dalvik format Failed with error 1
我不知道这是什么告诉我或从哪里开始看.我是否以某种方式递归地包括一个图书馆?我在订单和导出下的构建路径如下:
Google Apis [AndroID 3.0]AndroID DependencIEs annotations.jarAndroID Private librarIEs A ton of jars for varIoUs functionality i need: CSV writing, talking to the Google calendar somehow...etc...etc. They are jars I found on the net, not ripped from another project but found to solve problems i.e. how to access Google calendar from the device and read/write to it etc... is this where my problem lIEs? I can provIDe a complete List of the jars I am using here.androID-support-v4.jar
我自己添加了一个外部jar.我忘了它需要它但是如果我删除它就不能使用像FragmentActivity这样奇怪的东西.
那么我在哪里开始看起来如此,我可以再次选择这个项目…让它在模拟器上进行编译和运行.
liBS文件夹如下:
驱动器D中的卷是LargeWorkdisk
卷序列号为206C-D951
Directory of D:\Programming\StudioTab\libs 08/16/2013 12:39 AM <DIR> . 08/16/2013 12:39 AM <DIR> .. 08/15/2013 09:45 PM 1,700,072 androID-1.5_r4-sources.jar 08/15/2013 09:45 PM 2,136,034 androID-1.5_r4.jar 08/15/2013 09:45 PM 55,191 commons-codec-1.3-sources.jar 08/15/2013 09:45 PM 46,725 commons-codec-1.3.jar 08/15/2013 09:45 PM 74,976 commons-logging-1.1.1-sources.jar 08/15/2013 09:45 PM 60,686 commons-logging-1.1.1.jar 08/15/2013 09:45 PM 53,983 Google-API-clIEnt-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 44,653 Google-API-clIEnt-1.5.0-beta.jar 08/15/2013 09:45 PM 13,356 Google-API-clIEnt-extensions-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 15,276 Google-API-clIEnt-extensions-1.5.0-beta.jar 08/15/2013 09:45 PM 3,459 Google-API-clIEnt-extensions-androID2-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 4,556 Google-API-clIEnt-extensions-androID2-1.5.0-beta.jar 08/15/2013 09:45 PM 309,295 Google-collections-1.0-sources.jar 08/15/2013 09:45 PM 639,592 Google-collections-1.0.jar 08/15/2013 09:45 PM 188,771 Google-http-clIEnt-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 196,915 Google-http-clIEnt-1.5.0-beta.jar 08/15/2013 09:45 PM 6,433 Google-http-clIEnt-extensions-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 7,807 Google-http-clIEnt-extensions-1.5.0-beta.jar 08/15/2013 09:45 PM 3,021 Google-http-clIEnt-extensions-androID2-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 3,854 Google-http-clIEnt-extensions-androID2-1.5.0-beta.jar 08/15/2013 09:45 PM 6,638 Google-http-clIEnt-extensions-androID3-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 10,418 Google-http-clIEnt-extensions-androID3-1.5.0-beta.jar 08/15/2013 09:45 PM 35,765 Google-oauth-clIEnt-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 34,394 Google-oauth-clIEnt-1.5.0-beta.jar 08/15/2013 09:45 PM 38,030 Google-oauth-clIEnt-extensions-1.5.0-beta-sources.jar 08/15/2013 09:45 PM 48,289 Google-oauth-clIEnt-extensions-1.5.0-beta.jar 08/15/2013 09:45 PM 140,057 gson-1.6-sources.jar 08/15/2013 09:45 PM 164,984 gson-1.6.jar 08/15/2013 09:45 PM 640,031 guava-r09-sources.jar 08/15/2013 09:45 PM 1,143,921 guava-r09.jar 08/15/2013 09:45 PM 390,195 httpclIEnt-4.0.3-sources.jar 08/15/2013 09:45 PM 292,893 httpclIEnt-4.0.3.jar 08/15/2013 09:45 PM 291,844 httpcore-4.0.1-sources.jar 08/15/2013 09:45 PM 172,888 httpcore-4.0.1.jar 08/15/2013 09:45 PM 200,880 jackson-core-asl-1.6.7-sources.jar 08/15/2013 09:45 PM 201,086 jackson-core-asl-1.6.7.jar 08/15/2013 09:45 PM 283,945 jdo2-API-2.3-eb-sources.jar 08/15/2013 09:45 PM 192,820 jdo2-API-2.3-eb.jar 08/15/2013 09:45 PM 476,722 joda-time-1.6-sources.jar 08/15/2013 09:45 PM 534,827 joda-time-1.6.jar 08/15/2013 09:45 PM 39,665 Jsontoken-1.0-sources.jar 08/15/2013 09:45 PM 37,877 Jsontoken-1.0.jar 08/15/2013 09:45 PM 33,015 Jsr305-1.3.9.jar 08/15/2013 09:45 PM 147,086 junit-4.8.2-sources.jar 08/15/2013 09:45 PM 237,344 junit-4.8.2.jar 08/16/2013 12:39 AM 0 libsdir.txt 08/15/2013 09:45 PM 11,358 liCENSE 08/15/2013 09:45 PM 14,146 opencsv-2.3.jar 08/15/2013 09:45 PM 12,986 opengl-API-gl1.1-androID-2.1_r1-sources.jar 08/15/2013 09:45 PM 18,492 opengl-API-gl1.1-androID-2.1_r1.jar 08/15/2013 09:45 PM 125,968 ormlite-androID-4.24-javadoc.jar 08/15/2013 09:45 PM 22,285 ormlite-androID-4.24-sources.jar 08/15/2013 09:45 PM 32,707 ormlite-androID-4.24.jar 08/15/2013 09:45 PM 216,486 ormlite-core-4.24.jar 08/15/2013 09:45 PM 140,718 protobuf-java-2.2.0-sources.jar 08/15/2013 09:45 PM 320,306 protobuf-java-2.2.0.jar 08/15/2013 09:45 PM 501 readme.HTML 08/15/2013 09:45 PM 158,114 servlet-API-2.5-sources.jar 08/15/2013 09:45 PM 105,112 servlet-API-2.5.jar 08/15/2013 09:45 PM 25,014 transaction-API-1.1-sources.jar 08/15/2013 09:45 PM 15,071 transaction-API-1.1.jar 08/15/2013 09:45 PM 124,724 xmlParserAPIs-2.6.2.jar 08/15/2013 09:45 PM 128,334 xpp3-1.1.4c-sources.jar 08/15/2013 09:45 PM 120,069 xpp3-1.1.4c.jar 64 file(s) 12,952,660 bytes 2 Dir(s) 2,057,125,945,344 bytes free
解决方法:
Dalvik JVM不支持Oracle JDK的整个API.我认为javax.*包不适用于AndroID.例如,AndroID上没有Java的AWT或Swing或Graphics2D.
从错误中,看起来您的应用程序正在使用此类:http://docs.oracle.com/javase/7/docs/api/javax/xml/namespace/QName.html
这不应该发生如果您将IDE设置为使用AndroID SDK而不是JDK.
总结以上是内存溢出为你收集整理的java – 尝试修复机器人“不明智或错误地使用核心类”变坏了全部内容,希望文章能够帮你解决java – 尝试修复机器人“不明智或错误地使用核心类”变坏了所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)