在第一个项目中,构建在Eclipse和Android Studio中运行完成.
在第二个项目中,构建在Eclipse中运行完成,但在AndroID Studio中我看到:
Error:[Tracker-PRO-Key] UNEXPECTED top-LEVEL EXCEPTION:Error:[Tracker-PRO-Key] com.androID.dx.util.ExceptionWithContextError:[Tracker-PRO-Key] at com.androID.dx.util.ExceptionWithContext.withContext(ExceptionWithContext.java:46)Error:[Tracker-PRO-Key] at com.androID.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:344)Error:[Tracker-PRO-Key] at com.androID.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:134)Error:[Tracker-PRO-Key] at com.androID.dx.dex.cf.CfTranslator.translate(CfTranslator.java:87)Error:[Tracker-PRO-Key] at com.androID.dx.command.dexer.Main.processClass(Main.java:487)Error:[Tracker-PRO-Key] at com.androID.dx.command.dexer.Main.processfileBytes(Main.java:459)Error:[Tracker-PRO-Key] at com.androID.dx.command.dexer.Main.access0(Main.java:67)Error:[Tracker-PRO-Key] at com.androID.dx.command.dexer.Main.processfileBytes(Main.java:398)Error:[Tracker-PRO-Key] at com.androID.dx.cf.direct.ClasspathOpener.processOne(ClasspathOpener.java:135)Error:[Tracker-PRO-Key] at com.androID.dx.cf.direct.ClasspathOpener.process(ClasspathOpener.java:109)Error:[Tracker-PRO-Key] at com.androID.dx.command.dexer.Main.processOne(Main.java:422)Error:[Tracker-PRO-Key] at com.androID.dx.command.dexer.Main.processAllfiles(Main.java:333)Error:[Tracker-PRO-Key] at com.androID.dx.command.dexer.Main.run(Main.java:209)Error:[Tracker-PRO-Key] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Error:[Tracker-PRO-Key] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)Error:[Tracker-PRO-Key] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)Error:[Tracker-PRO-Key] at java.lang.reflect.Method.invoke(Method.java:606)Error:[Tracker-PRO-Key] at org.jetbrains.androID.compiler.tools.AndroIDDxRunner.runDex(AndroIDDxRunner.java:139)Error:[Tracker-PRO-Key] at org.jetbrains.androID.compiler.tools.AndroIDDxRunner.main(AndroIDDxRunner.java:261)Error:[Tracker-PRO-Key] at com.intellij.rt.execution.CommandlineWrapper.main(CommandlineWrapper.java:121)Error:[Tracker-PRO-Key] Caused by: java.lang.NullPointerExceptionError:[Tracker-PRO-Key] at com.androID.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:87)Error:[Tracker-PRO-Key] at com.androID.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:75)Error:[Tracker-PRO-Key] at com.androID.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:247)Error:[Tracker-PRO-Key] ... 22 moreError:[Tracker-PRO-Key] ...while processing <init> (Lcom/DynaZu/Tracker/Prokey/MainActivity;)VError:[Tracker-PRO-Key] ...while processing /home/joel/workspace/Tracker-PRO-Key/out/production/Tracker-PRO-Key/com/DynaZu/Tracker/Prokey/MainActivity.classError:[Tracker-PRO-Key] 1 error; aborting
aIDl文件非常简单:
package com.DynaZu.Tracker.Prokey;interface IProKEYComm { long getlicenseInfo();}
如何确定问题????是什么导致这个?我正在使用com.Google.androID.vending.licensing.这有关系吗?
我已经看到了两次包含库(有不同版本)的问题,但这似乎不是问题所在.任何想法将不胜感激!
以上是内存溢出为你收集整理的android-studio – 如何在Android Studio中解决意外的顶层异常全部内容,希望文章能够帮你解决android-studio – 如何在Android Studio中解决意外的顶层异常所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)