在Android Studio 运行的时候报E/dalvikvm: Could not find class 'xxx',
2018-01-02 12:02
513 查看
http://blog.csdn.net/u011005173/article/details/52232221 谢谢
前言:懂得珍惜才会拥有的更多。
问题描述:
在Android Studio 运行的时候报E/dalvikvm: Could not find class ‘xxx’,
但是在android5.0以上不会报此错误能运行成功。
![如图](http://img.blog.csdn.net/20180102120111279?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveXVhbjE1ODAwOTA0MDk0/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
解决办法:
在app->build.gradle 中有如下设置
其中
minifyEnabled false 意思是 是否进行混淆
我们只需要在自己工程中的Application中加入下面代码即可解决。
2
3
4
5
6
[/code]
如果本文有帮到你,记得加关注哦。
初出茅庐,还望指教。
请大家尊重原创者版权,转载请标明出处:http://blog.csdn.net/u011005173/article/details/52232221 谢谢
前言:懂得珍惜才会拥有的更多。
问题描述:
在Android Studio 运行的时候报E/dalvikvm: Could not find class ‘xxx’,
但是在android5.0以上不会报此错误能运行成功。
![如图](http://img.blog.csdn.net/20180102120111279?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveXVhbjE1ODAwOTA0MDk0/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
解决办法:
在app->build.gradle 中有如下设置
其中
minifyEnabled false 意思是 是否进行混淆
我们只需要在自己工程中的Application中加入下面代码即可解决。
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }1
2
3
4
5
6
[/code]
如果本文有帮到你,记得加关注哦。
初出茅庐,还望指教。
请大家尊重原创者版权,转载请标明出处:http://blog.csdn.net/u011005173/article/details/52232221 谢谢
<link rel="stylesheet" href="http://csdnimg.cn/release/phoenix/production/markdown_views-d4dade9c33.css"> </div>
相关文章推荐
- 在Android Studio 运行的时候报E/dalvikvm: Could not find class 'xxx',
- 在Android Studio 运行的时候报E/dalvikvm: Could not find class 'xxx',
- 在Android Studio 运行的时候报dalvikvm: Could not find class 'xxx',
- Android运行时候报错 E/dalvikvm: Could not find class.....
- Android Studio各种坑爹之:dalvikvm: Could not find class 'android.util.ArrayMap'
- 运行maven项目出现:Error: Could not find or load main class com.xxx.xxxx
- Myeclips运行的的时候出现Could not find the main class:Main. Program will exit.
- 在centos中运行java命令时出现Error: Could not find or load main class XXX问题的解决方法
- 只有被测APK时运行Robotium测试项目Logcat报错“Could not find class 'com.jayway.android.robotium.solo.Solo'"
- iOS坑爹的could not find any information for class named xxx
- 【hadoop sqoop】运行sqoop 报 Could not find or load main class org.apache.sqoop.Sqoop
- E/dalvikvm: Could not find class
- Eclipse运行异常:Could not find the main class. Program will exit.
- Could not find class XXX referenced from method XXX.<YYY>
- Java运行报错:Error: Could not find or load main class
- E/dalvikvm: Could not find class 'cn.jpush.android.service.PushJobService', referenced from method c
- dos运行java类时遇到Could not find the main class问题
- Ubuntu Linux Matlab 安装 中文乱码 桌面启动器 Could not find the main class: java/splash.png. 终端terminal 直接运行 matlab
- Could not find class XXX referenced from method XXX.<YYY>
- android studio运行程序找不到class,java.lang.ClassNotFoundException: Didn't find class,完美解决!