没有啊,但是在Android4.2.、4.4、都无法启动,报出同样的错误“Could not find class 'com.umeng.message.local.UmengLocalNotificationService', referenced from method com.umeng.message.PushAgent.enable”
但是在其他版本,Android5.1、7.1都没有报错正常启动
没有啊,但是在Android4.2.、4.4、都无法启动,报出同样的错误“Could not find class 'com.umeng.message.local.UmengLocalNotificationService', referenced from method com.umeng.message.PushAgent.enable”
但是在其他版本,Android5.1、7.1都没有报错正常启动
问题关键点:
Unable to get provider android.support.v4.content.FileProvider:
java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider"
可以查看相关微博:--https://blog.csdn.net/fox_wei_hlz/article/details/78732907
对于版本Android5.0(api>=21)的时候只需要在build.gradle中将multidexenabled设置为true即可,但是在最低版本低于5.0(api<21)的时候
需要依赖包:'com.android.support:multidex:1.0.2'
并且在attachBaseContext方法中初始化Multidex(MultiDex.install(this))即可