Importing Facebook SDK crash android app java.lang.UnsatisfiedLinkError

冷暖自知 提交于 2019-12-19 09:24:01

问题


Just importing Facebook SDK crashes my android app, it was working fine but it start to crash, I comment every section uses facebook SDK it still crash I use facebook sdk version "4.24.0"

07-05 12:50:30.309 10354-10412/andrewhossam.cuju_android E/art: No implementation found for long com.android.tools.profiler.support.network.HttpTracker$Connection.nextId() (tried Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId and Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId__)

                                                                --------- beginning of crash
07-05 12:50:30.310 10354-10412/andrewhossam.cuju_android E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
                                                                           Process: andrewhossam.cuju_android, PID: 10354
                                                                           java.lang.UnsatisfiedLinkError: No implementation found for long com.android.tools.profiler.support.network.HttpTracker$Connection.nextId() (tried Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId and Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId__)
                                                                               at com.android.tools.profiler.support.network.HttpTracker$Connection.nextId(Native Method)
                                                                               at com.android.tools.profiler.support.network.HttpTracker$Connection.<init>(HttpTracker.java:191)
                                                                               at com.android.tools.profiler.support.network.HttpTracker$Connection.<init>(HttpTracker.java:186)
                                                                               at com.android.tools.profiler.support.network.HttpTracker.trackConnection(HttpTracker.java:280)
                                                                               at com.android.tools.profiler.support.network.httpurl.HttpsURLConnection$.<init>(HttpsURLConnection$.java:55)
                                                                               at com.android.tools.profiler.support.network.httpurl.HttpURLWrapper.wrapURLConnectionHelper(HttpURLWrapper.java:40)
                                                                               at com.android.tools.profiler.support.network.httpurl.HttpURLWrapper.wrapURLConnection(HttpURLWrapper.java:55)
                                                                               at com.facebook.GraphRequest.createConnection(GraphRequest.java:1410)
                                                                               at com.facebook.GraphRequest.toHttpConnection(GraphRequest.java:1070)
                                                                               at com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1158)
                                                                               at com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1134)
                                                                               at com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1118)
                                                                               at com.facebook.GraphRequest.executeAndWait(GraphRequest.java:1093)
                                                                               at com.facebook.GraphRequest.executeAndWait(GraphRequest.java:987)
                                                                               at com.facebook.internal.FetchedAppSettingsManager.getAppSettingsQueryResponse(FetchedAppSettingsManager.java:207)
                                                                               at com.facebook.internal.FetchedAppSettingsManager.access$100(FetchedAppSettingsManager.java:47)
                                                                               at com.facebook.internal.FetchedAppSettingsManager$1.run(FetchedAppSettingsManager.java:122)
                                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                               at java.lang.Thread.run(Thread.java:818)
07-05 12:50:30.311 1104-1960/? E/ActivityManager: App crashed! Process: andrewhossam.cuju_android

回答1:


Uncheck "Enable advanced profiling" in Run->Edit Config->profiling tab




回答2:


after search for days i found it !

add this to your manifest file :

<uses-feature
    android:name="android.hardware.telephony"
    android:required="false" />


来源:https://stackoverflow.com/questions/44924486/importing-facebook-sdk-crash-android-app-java-lang-unsatisfiedlinkerror

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!