socialauth android ResourceNotFound

我在我的应用程序中实现了socialAuth android。 但是当我点击我的分享button有一个错误:

01-07 19:25:27.308: D/SocialAuthAdapter(4167): Selected provider is facebook 01-07 19:25:27.308: D/SocialAuthAdapter(4167): Loading keys and secrets from configuration 01-07 19:25:27.328: I/SocialAuthConfig(4167): Loading application configuration 01-07 19:25:27.358: I/OAuth2(4167): Determining URL for redirection 01-07 19:25:27.358: I/OAuth2(4167): Redirection to following URL should happen : https://graph.facebook.com/oauth/authorize?client_id=447809015285714&response_type=code&redirect_uri=fbconnect%3A%2F%2Fsuccess&scope=publish_stream,email,user_birthday,user_location 01-07 19:25:27.358: D/SocialAuthAdapter(4167): Loading URL : https://graph.facebook.com/oauth/authorize?client_id=447809015285714&response_type=code&redirect_uri=fbconnect%3A%2F%2Fsuccess&scope=publish_stream,email,user_birthday,user_location&type=user_agent&display=touch 01-07 19:25:27.358: D/SocialAuthAdapter(4167): Callback URI : fbconnect://success 01-07 19:25:27.368: W/ResourceType(4167): No package identifier when getting value for resource number 0x00000000 01-07 19:25:27.368: D/AndroidRuntime(4167): Shutting down VM 01-07 19:25:27.378: W/dalvikvm(4167): threadid=1: thread exiting with uncaught exception (group=0x40a9c210) 01-07 19:25:27.378: E/AndroidRuntime(4167): FATAL EXCEPTION: main 01-07 19:25:27.378: E/AndroidRuntime(4167): android.content.res.Resources$NotFoundException: Resource ID #0x0 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.content.res.Resources.getValue(Resources.java:1023) 

更多的日志。

 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.content.res.Resources.getDrawable(Resources.java:668) 01-07 19:25:27.378: E/AndroidRuntime(4167): at org.brickred.socialauth.android.SocialAuthDialog.setUpTitle(SocialAuthDialog.java:149) 01-07 19:25:27.378: E/AndroidRuntime(4167): at org.brickred.socialauth.android.SocialAuthDialog.onCreate(SocialAuthDialog.java:123) 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.app.Dialog.dispatchOnCreate(Dialog.java:353) 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.app.Dialog.show(Dialog.java:257) 01-07 19:25:27.378: E/AndroidRuntime(4167): at org.brickred.socialauth.android.SocialAuthAdapter$3$1.run(SocialAuthAdapter.java:372) 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.os.Handler.handleCallback(Handler.java:605) 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.os.Handler.dispatchMessage(Handler.java:92) 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.os.Looper.loop(Looper.java:137) 01-07 19:25:27.378: E/AndroidRuntime(4167): at android.app.ActivityThread.main(ActivityThread.java:4441) 01-07 19:25:27.378: E/AndroidRuntime(4167): at java.lang.reflect.Method.invokeNative(Native Method) 01-07 19:25:27.378: E/AndroidRuntime(4167): at java.lang.reflect.Method.invoke(Method.java:511) 01-07 19:25:27.378: E/AndroidRuntime(4167): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823) 01-07 19:25:27.378: E/AndroidRuntime(4167): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590) 01-07 19:25:27.378: E/AndroidRuntime(4167): at dalvik.system.NativeStart.main(Native Method) 

我不知道为什么会这样。 例子后,我非常仔细地遵循。

Solutions Collecting From Web of "socialauth android ResourceNotFound"

请将名称为facebook.png,foursquare.png,google.png,linkedin.png,myspace.png,twitter.png,yahoo.png的图标添加到facebook,Google,twitter中。

只需放在您的图片( facebook.png,linkedin.png,twitter.png或更多与您的应用程序集成的人 )可绘制文件夹。

发生这个问题是因为你的lib文件需要图标,如果它不在你的包上,那么它显示错误。

 No package identifier when getting value for resource number 0x00000000 android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.Resources.getDrawable(Resources.java:668) at org.brickred.socialauth.android.SocialAuthDialog.setUpTitle(SocialAuthDialog.java:149) 

上面的im只是显示了当文件不在你的drawable上时发生的主要错误。