博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
eclipse踩坑Order and Export引发java.lang.NoClassDefFoundErrorFailed resolution of
阅读量:2441 次
发布时间:2019-05-10

本文共 2699 字,大约阅读时间需要 8 分钟。

报错日志

D/AndroidRuntime(24743)Shutting down VME/AndroidRuntime(24743)FATAL EXCEPTIONmainE/AndroidRuntime(24743)Processan.hh.meq, PID24743E/AndroidRuntime(24743)java.lang.NoClassDefFoundErrorFailed resolution ofLan/hh/meq/Servicemeq;E/AndroidRuntime(24743)	at an.hh.meq.MainActivity.onCreate(MainActivity.java:16)E/AndroidRuntime(24743)	at android.app.Activity.performCreate(Activity.java:6904)E/AndroidRuntime(24743)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)E/AndroidRuntime(24743)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)E/AndroidRuntime(24743)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)E/AndroidRuntime(24743)	at android.app.ActivityThread.access$1100(ActivityThread.java:229)E/AndroidRuntime(24743)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)E/AndroidRuntime(24743)	at android.os.Handler.dispatchMessage(Handler.java:102)E/AndroidRuntime(24743)	at android.os.Looper.loop(Looper.java:148)E/AndroidRuntime(24743)	at android.app.ActivityThread.main(ActivityThread.java:7329)E/AndroidRuntime(24743)	at java.lang.reflect.Method.invoke(Native Method)E/AndroidRuntime(24743)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)E/AndroidRuntime(24743)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)E/AndroidRuntime(24743)Caused byjava.lang.ClassNotFoundExceptionDidn't find class "an.hh.meq.Servicemeq" on pathDexPathList[[zip file "/data/app/an.hh.meq-1/base.apk"],nativeLibraryDirectories=[/data/app/an.hh.meq-1/lib/arm, /data/app/an.hh.meq-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]E/AndroidRuntime(24743)	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)E/AndroidRuntime(24743)	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)E/AndroidRuntime(24743)	at java.lang.ClassLoader.loadClass(ClassLoader.java:469)E/AndroidRuntime(24743)	... 13 moreE/AndroidRuntime(24743)	Suppressedjava.lang.ClassNotFoundExceptionan.hh.meq.ServicemeqE/AndroidRuntime(24743)		at java.lang.Class.classForName(Native Method)E/AndroidRuntime(24743)		at java.lang.BootClassLoader.findClass(ClassLoader.java:781)E/AndroidRuntime(24743)		at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)E/AndroidRuntime(24743)		at java.lang.ClassLoader.loadClass(ClassLoader.java:504)E/AndroidRuntime(24743)		... 14 moreE/AndroidRuntime(24743)	Caused byjava.lang.NoClassDefFoundErrorClass not found using the boot class loader; no stack trace available

报错原因

在eclipse工程中使用了一个jar包,但是我没有勾选Order and Export,这样生成的APK中没有jar代码,这是eclipse的坑,所以没事还是不要用eclipse,最好用android studio。
在这里插入图片描述
看报错时反编译的截图
在这里插入图片描述
解决方法
勾上Order and Export就解决了。

转载地址:http://glbqb.baihongyu.com/

你可能感兴趣的文章
Android Intent 简介
查看>>
Android Service 简介
查看>>
Windows Phone 8.1 App 图片资源需求列表
查看>>
.NET源码中的栈
查看>>
java中jdk与jre的关系以及环境变量配置时Java_Home\Path\ClassPath各代表什么意思
查看>>
JDK和Tomcat官网下载,包含各个历史版本
查看>>
Swing组件对齐方式与字体对齐方式
查看>>
Class类的newInstance方法抛出InstantiationException异常
查看>>
sqlserver三种分页查询方法
查看>>
java实现对称加密AES与非对称加密RSA算法
查看>>
Tomcat安装与配置
查看>>
Tomcat Server组成
查看>>
Java 使用Token令牌防止表单重复提交
查看>>
Tomcat 部署war文件
查看>>
桌面文件删除不掉的解决方案
查看>>
MyEclipse10.x 安装 properties editor插件,properties文件显示中文
查看>>
Json学习一(基础概念知识学习)
查看>>
Font "楷体_GB2312" is not available to the JVM. See the Javadoc for more det
查看>>
mysql5.7.11服务无法启动,错误代码3534
查看>>
Mysql5.7.11解压版在windows10上的安装配置
查看>>