解决E/SharedPreferencesImpl: Couldn‘t create directory for SharedPreferences file /data/user/0/com.exa

Couldn't create directory for SharedPreferences file

在这里插入图片描述

E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.examp

意思为:不能在“/data/user/0/com.example.”目录下创建文件

问题描述:

安装你的app后卡在起始界面或者加载不出来下一界面

解决方法:

手动给你的app存储读写权限再运行

请添加图片描述

请添加图片描述

W/.weather:remot: Accessing hidden field Landroid/content/res/ResourcesKey;->mOverrideConfiguration:Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
W/.weather:remot: Accessing hidden method Landroid/view/DisplayAdjustments;-><init>(Landroid/content/res/Configuration;)V (greylist-max-o, linking, denied)
W/.weather:remot: Accessing hidden method Landroid/app/ResourcesManager;->overrideTokenDisplayAdjustments(Landroid/os/IBinder;Ljava/util/function/Consumer;)Z (blacklist, linking, denied)
W/.weather:remot: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->activityResources:Ljava/util/ArrayList; (greylist-max-o, linking, denied)
W/.weather:remot: Accessing hidden method Landroid/content/res/Resources;->overrideDisplayAdjustments(Ljava/util/function/Consumer;)V (blacklist, linking, denied)
W/.weather:remot: Accessing hidden method Landroid/app/ResourcesManager;->updateResourcesForActivity(Landroid/os/IBinder;Landroid/content/res/Configuration;IZ)V (greylist-max-o, linking, denied)
W/.weather:remot: Accessing hidden method Landroid/app/ResourcesManager;->getOrCreateActivityResourcesStructLocked(Landroid/os/IBinder;)Landroid/app/ResourcesManager$ActivityResources; (greylist-max-o, linking, denied)
W/.weather:remot: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
W/.weather:remot: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
I/Perf: Connecting to perf service.
D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true
D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true
I/BaiduApiAuth: BaiduApiAuth SDK Version:1.0.25
D/baidu_location_service: baidu location service start 0210 version ...20220210_1153...7760
E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.example.weather/shared_prefs/authStatus_com.example.weather:remote��������������������������������������������������������������������������������������������������������������������������������������������������.xml
W/CuidBuddyInfoManager: galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
I/chatty: uid=10585(com.example.weather) ServiceStartArg identical 1 line
W/CuidBuddyInfoManager: galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
I/TetheringManager: registerTetheringEventCallback:com.example.weather
D/baidu_location_service: start gps...
W/SQLiteLog: (28) double-quoted string literal: "5002254814751562314"
E/SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.example.weather/shared_prefs/authStatus_com.example.weather:remote��������������������������������������������������������������������������������������������������������������������������������������������������.xml
W/SQLiteLog: (28) double-quoted string literal: "5002254814751562314"
W/Looper: PerfMonitor longMsg : seq=8 plan=11:44:51.727 late=0ms wall=1002ms running=1ms runnable=1ms io=1ms h=android.app.ActivityThread$H w=127 procState=10
I/baidu_location_service: LocationAuthManager Authentication Error errorcode = 230 , msg = {"status":230,"message":"APP Mcode码校验失败","user_permission":0,"ak_permission":0}
D/baidu_location_service: baidu location service stop ...
D/CompatibilityChangeReporter: Compat change id reported: 147600208; UID 10585; state: ENABLED
D/baidu_location_service: baidu location service has stoped ...
W/System: A resource failed to call close. 
W/System: A resource failed to call close. 
  • 7
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值