当我在安装了Facebook SDK的设备上,即小米Mi A2上,从Android Studio启动我的应用程序时,它会触发同一个错误三次。这不会停止应用程序,但我不知道是否错过了什么或者它是否重要,但最终,它是一个错误,我想澄清一下。
我正在使用Android Studio 3.4.1,Android 9和build.gradle文件中的新条款是
以下是Logcat中显示的内容:
2019-06-24 18:24:31.202 25105-25136/com.myapp E/com.facebook.appevents.RestrictiveDataManager: updateRulesFromSetting failed org.json.JSONException: End of input at character 0 of at org.json.JSONTokener.syntaxError(JSONTokener.java:449) at org.json.JSONTokener.nextValue(JSONTokener.java:97) at org.json.JSONArray.(JSONArray.java:92) at org.json.JSONArray.(JSONArray.java:108) at com.facebook.appevents.RestrictiveDataManager.updateFromSetting(RestrictiveDataManager.java:32) at com.facebook.internal.FetchedAppSettingsManager.parseAppSettingsFromJSON(FetchedAppSettingsManager.java:323) at com.facebook.internal.FetchedAppSettingsManager.access$000(FetchedAppSettingsManager.java:63) at com.facebook.internal.FetchedAppSettingsManager$1.run(FetchedAppSettingsManager.java:181) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)
我正在使用Android Studio 3.4.1,Android 9和build.gradle文件中的新条款是
implementation 'com.facebook.android:facebook-android-sdk:5.1.0'
。在升级Facebook SDK之前没有出现错误。以下是Logcat中显示的内容:
2019-06-24 18:24:31.202 25105-25136/com.myapp E/com.facebook.appevents.RestrictiveDataManager: updateRulesFromSetting failed org.json.JSONException: End of input at character 0 of at org.json.JSONTokener.syntaxError(JSONTokener.java:449) at org.json.JSONTokener.nextValue(JSONTokener.java:97) at org.json.JSONArray.(JSONArray.java:92) at org.json.JSONArray.(JSONArray.java:108) at com.facebook.appevents.RestrictiveDataManager.updateFromSetting(RestrictiveDataManager.java:32) at com.facebook.internal.FetchedAppSettingsManager.parseAppSettingsFromJSON(FetchedAppSettingsManager.java:323) at com.facebook.internal.FetchedAppSettingsManager.access$000(FetchedAppSettingsManager.java:63) at com.facebook.internal.FetchedAppSettingsManager$1.run(FetchedAppSettingsManager.java:181) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)