红米手机RedNot11无法使用谷歌框架,打开游戏闪退的问题,
- 1.问题描述
- 2.问题原因
- 3.解决方案
- 3.1配置谷歌框架:
- 3.1软件优化
- 4.附图
1.问题描述
红米手机打开安卓APP没有广告,直接闪退,无法使用谷歌框架
异常关键词中包含:at com.google.android.gms.internal.ads.lf.p(Unknown Source:15)
2.问题原因
小米默认关闭了谷歌基础服务的功能,导致三大件无法打开或者闪退
主要情况是游戏或者软件设计问题,在启动的时候因为拉不到谷歌的信息,导致了闪退
3.解决方案
3.1配置谷歌框架:
1.进入设置页面,搜索谷歌,选择谷歌基础服务
2.开启谷歌基础服务
3.从小米平台下载googlePlay商店,这个需要在普通环境下
4.在VPN环境下启动googlePlay商店
3.1软件优化
检查所有谷歌服务拉取的设置,
4.附图
如下图
报错数据:
java.lang.SecurityException: Writable dex file '/data/user/0/org.cocos2d.demo1/cache/1673051109277.jar' is not allowed.<br> at dalvik.system.DexFile.openDexFileNative(Native Method)<br> at dalvik.system.DexFile.openDexFile(DexFile.java:406)<br> at dalvik.system.DexFile.<init>(DexFile.java:128)<br> at dalvik.system.DexFile.<init>(DexFile.java:101)<br> at dalvik.system.DexPathList.loadDexFile(DexPathList.java:438)<br> at dalvik.system.DexPathList.makeDexElements(DexPathList.java:397)<br> at dalvik.system.DexPathList.<init>(DexPathList.java:166)<br> at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:160)<br> at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:105)<br> at dalvik.system.DexClassLoader.<init>(DexClassLoader.java:55)<br> at com.google.android.gms.internal.ads.pg.g(Unknown Source:254)<br> at com.google.android.gms.internal.ads.lf.p(Unknown Source:15)<br> at com.google.android.gms.internal.ads.lf.t(Unknown Source:16)<br> at com.google.android.gms.internal.ads.mf.y(Unknown Source:0)<br> at com.google.android.gms.ads.internal.i.p(Unknown Source:12)<br> at com.google.android.gms.ads.internal.i.run(Unknown Source:58)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)<br> at java.lang.Thread.run(Thread.java:1012)<br>java.lang.SecurityException: Writable dex file '/data/user/0/org.cocos2d.demo1/cache/1673051109277.jar' is not allowed.<br> at dalvik.system.DexFile.openDexFileNative(Native Method)<br> at dalvik.system.DexFile.openDexFile(DexFile.java:406)<br> at dalvik.system.DexFile.<init>(DexFile.java:128)<br> at dalvik.system.DexFile.<init>(DexFile.java:101)<br> at dalvik.system.DexPathList.loadDexFile(DexPathList.java:438)<br> at dalvik.system.DexPathList.makeDexElements(DexPathList.java:397)<br> at dalvik.system.DexPathList.<init>(DexPathList.java:166)<br> at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:160)<br> at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:105)<br> at dalvik.system.DexClassLoader.<init>(DexClassLoader.java:55)<br> at com.google.android.gms.internal.ads.pg.g(Unknown Source:254)<br> at com.google.android.gms.internal.ads.lf.p(Unknown Source:15)<br> at com.google.android.gms.internal.ads.lf.t(Unknown Source:16)<br> at com.google.android.gms.internal.ads.mf.y(Unknown Source:0)<br> at com.google.android.gms.ads.internal.i.p(Unknown Source:12)<br> at com.google.android.gms.ads.internal.i.run(Unknown Source:58)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)<br> at java.lang.Thread.run(Thread.java:1012)<br>