导入osmand项目时发生错误:
Error:Execution failed for task ':OsmAnd:preDexFreeLegacyArmv5Debug'.
通用域名格式。Android石斑鱼类。常见的内部的LoggedErrorException:无法运行命令:E:\Android\sdk\build tools\21.1.2\dx。bat--dex--force jumbo--输出E:\Android\u test\u projects\Osmand-master2\Osmand-master\Osmand\build\intermediates\pre-dexed\freelgacyarmv5\debug\Osmand-java-Android-9c283cd307dbfef07359ccbde68a11b21ff0b4f。jar E:\Android\u test\u projects\Osmand-master2\Osmand master\Osmand java\build\libs\Osmand java Android。jar错误代码:1输出:意外的顶级异常:com.Androiddx。参见iface。ParseException:com上的类文件magic(cafebabe)或版本(0034.0000)错误。Androiddx。参见直接。DirectClassFile。com上的parse0(DirectClassFile.java:472)。Androiddx。参见直接。DirectClassFile。在com上解析(DirectClassFile.java:406)。Androiddx。参见直接。DirectClassFile。ParseToInterfaceSifnecessable(DirectClassFile.java:388)在com上。Androiddx。参见直接。DirectClassFile。com上的getMagic(DirectClassFile.java:251)。Androiddx。命令德克塞。主要的com上的processClass(Main.java:704)。Androiddx。命令德克塞。主要的com上的processFileBytes(Main.java:673)。Androiddx。命令德克塞。主要的在com上访问300美元(Main.java:83)。Androiddx。命令德克塞。主要1美元。com上的processFileBytes(Main.java:602)。Androiddx。参见直接。ClassPathOpener。com上的processArchive(ClassPathOpener.java:284)。Androiddx。参见直接。ClassPathOpener。com上的processOne(ClassPathOpener.java:166)。Androiddx。参见直接。ClassPathOpener。进程(ClassPathOpener.java:144)。Androiddx。命令德克塞。主要的com上的processOne(Main.java:632)。Androiddx。命令德克塞。主要的在com上处理所有文件(Main.java:510)。Androiddx。命令德克塞。主要的com上的runMonoDex(Main.java:280)。Androiddx。命令德克塞。主要的在com上运行(Main.java:246)。Androiddx。命令德克塞。主要的com上的main(main.java:215)。Androiddx。命令主要的main(main.java:106)。。。在解析com/google/protobuf/AbstractMessage$1时。1级错误;正在中止
上述错误的原因是java 1.8。在将其更改为1.7之后,我出现了这个运行时错误
2-11 10:28:55.160 26327-26327/net.osmand V/Zygote﹕ Switching descriptor 34 to /dev/null
02-11 10:28:55.160 26327-26327/net.osmand V/Zygote﹕ Switching descriptor 9 to /dev/null
02-11 10:28:55.160 26327-26327/net.osmand D/dalvikvm﹕ Late-enabling CheckJNI
02-11 10:28:55.200 26327-26327/net.osmand D/ActivityThread﹕ handleBindApplication:net.osmand
02-11 10:28:55.200 26327-26327/net.osmand D/ActivityThread﹕ setTargetHeapUtilization:0.75
02-11 10:28:55.200 26327-26327/net.osmand D/ActivityThread﹕ setTargetHeapMinFree:2097152
02-11 10:28:55.260 26327-26327/net.osmand I/net.osmand﹕ ResourceManager Tiles to load in memory : 162.0
02-11 10:28:55.350 26327-26327/net.osmand D/AndroidRuntime﹕ Shutting down VM
02-11 10:28:55.350 26327-26327/net.osmand W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41653db8)
02-11 10:28:55.350 26327-26327/net.osmand E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.osmand, PID: 26327
java.lang.RuntimeException: Unable to create application net.osmand.plus.OsmandApplication: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4476)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:171)
at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: is == null
at org.kxml2.io.KXmlParser.setInput(KXmlParser.java:1625)
at net.osmand.router.RoutingConfiguration.parseFromInputStream(RoutingConfiguration.java:184)
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:169)
at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
02-11 10:29:42.570 26327-26334/net.osmand D/dalvikvm﹕ null clazz in OP_INSTANCE_OF, single-stepping
02-11 10:33:27.190 26327-26327/net.osmand I/Process﹕ Sending signal. PID: 26327 SIG: 9
02-11 10:34:10.670 26873-26873/net.osmand D/ActivityThread﹕ handleBindApplication:net.osmand
02-11 10:34:10.670 26873-26873/net.osmand D/ActivityThread﹕ setTargetHeapUtilization:0.75
02-11 10:34:10.670 26873-26873/net.osmand D/ActivityThread﹕ setTargetHeapMinFree:2097152
02-11 10:34:10.740 26873-26873/net.osmand I/net.osmand﹕ ResourceManager Tiles to load in memory : 162.0
02-11 10:34:10.840 26873-26873/net.osmand D/AndroidRuntime﹕ Shutting down VM
02-11 10:34:10.840 26873-26873/net.osmand W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41653db8)
02-11 10:34:10.840 26873-26873/net.osmand E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.osmand, PID: 26873
java.lang.RuntimeException: Unable to create application net.osmand.plus.OsmandApplication: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4476)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:171)
at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: is == null
at org.kxml2.io.KXmlParser.setInput(KXmlParser.java:1625)
at net.osmand.router.RoutingConfiguration.parseFromInputStream(RoutingConfiguration.java:184)
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:169)
at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
02-11 10:34:58.010 26873-26880/net.osmand D/dalvikvm﹕ null clazz in OP_INSTANCE_OF, single-stepping
我也有同样的问题,我把所有的东西都搬走了。java类文件到根包,所有错误都消失了。。。
我试图编写一个简单的android应用程序,我收到了这个错误消息。请帮忙 错误:任务执行失败:应用程序:dexDebug。 com.android.dx.command.dexer.Main.main:无法运行命令:D:\用户\用户\AppData\本地\Android\sdk\build-tools\21.1.2\Main.java:215--dex--no-优化--out C:\用户\用户\桌
Android Mainfest Libs文件夹现在不存在Libs文件夹
在我的一个项目中,我在构建gradle文件时得到了这个异常 错误:任务': emBazaarV4: dexDebug'执行失败。 com.android.dx.command.dexer.Main.main:无法运行命令:F:\AndroidSDK\build-tools\21.1.2\Main.java:215--dex--no-优化--out F:\AndroidStudioWorkspace
我有两个项目共享同一个aidl文件。 在第一个项目中,构建在Eclipse和Android Studio中运行到完成。 如何确定问题????这是什么原因造成的?我正在使用com.google.android.vending.licensing。这可能是相关的吗? 我曾经看到过一个库被包含两次(不同版本)的问题,但这似乎不是这里的问题。任何想法都将非常感谢!
我在使用Android Studio的Android应用程序上尝试使用Google Play服务时遇到了麻烦。 我什么都试过了,还是不起作用。 这就是错误所在。 com.android.ide.common.internal.loggederrorexception:无法运行命令:/users/jghg/desktoes/my app/android/sdk/android-sdk-mac_86/
注:与此问题类似,但不相同。 我有一个快速js节点网站(WIP),但我一直得到以下错误: 我的: 文件只是一个基本的jade文件,描述了一个简单的引导navbar,因此我将省略它。 : 现在,当我访问时,除了