Facebook Android SDK unknownHostException

后端 未结 1 535
挽巷
挽巷 2021-02-11 10:58

Facebook Android SDK when running example apps gives

11-14 23:17:58.484: ERROR/HttpOperation.run(1139): class java.net.UnknownHostException api.facebook.com [htt         


        
相关标签:
1条回答
  • 2021-02-11 11:23

    You need to add the permission to use the internet to the app. If you don't, the app throws this error.

    go into the manifest and add this line:

    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    
    0 讨论(0)
提交回复
热议问题