我已经跟踪了来自developers.kakao控制台的kakao talk登录示例应用程序,如果我运行示例应用程序,它工作正常,但如果我这样做创建新项目我会收到此错误:
java.lang.ExceptionInInitializerError
at com.kakao.authorization.accesstoken.GetterAccessToken.makeAccessTokenRequest(GetterAccessToken.java:116)
at com.kakao.authorization.accesstoken.GetterAccessToken.requestAccessToken(GetterAccessToken.java:56)
at com.kakao.LoginActivity.onCreate(LoginActivity.java:78)
at android.app.Activity.performCreate(Activity.java:5326)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2218)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2309)
at android.app.ActivityThread.access$700(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5317)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
什么是错误类型以及如何开始解决它?
答案 0 :(得分:0)
因为你正在使用facebook sdk和kakao sdk,所以会有一个会话问题。 为此,只需从您的kakao sdk ans的构建路径中删除Asyn HTTP客户端库,之后它就会正常运行