解决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存储读写权限再运行

解决E/SharedPreferencesImpl: Couldn‘t create directory for SharedPreferences file /data/user/0/com.exa_第1张图片

解决E/SharedPreferencesImpl: Couldn‘t create directory for SharedPreferences file /data/user/0/com.exa_第2张图片

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. 

你可能感兴趣的:(android开发,bug,java,开发语言)