Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
10/31/14 01:43 PM (9 years ago)

app crashes when start after adding facebook sdk in project - eclipse

As the title says my app crashes when starting after i added the facebook sdk in the apps library if i dont add fb sdk then my scringo works fine and login with twitter i have add the fb app id in : scringo/res/values/scringo_strings.xml <string name="replace_this_facebook_app_id">my fb app id</string> bt version core = 3 scringo : 2.5.6 fb sdk : 3.20.0 where is the place to add the id in the manifest as the error below says ? i have read all the post around here and there is no info about adding the fb app id in the manifest only in scringo_strings.xml here is the log file : I/Scringo(18985): Scringo version: 2.5.4 10-31 22:03:53.211: E/Scringo(18985): You need to set the facebook app id in the manifest. See https://developers.facebook.com/docs/tutorials/androidsdk/3.0/upgrading-from-2.0-to-3.0/#login 10-31 22:03:53.211: D/AndroidRuntime(18985): Shutting down VM 10-31 22:03:53.211: W/dalvikvm(18985): threadid=1: thread exiting with uncaught exception (group=0x40c7e930) 10-31 22:03:53.241: E/AndroidRuntime(18985): FATAL EXCEPTION: main 10-31 22:03:53.241: E/AndroidRuntime(18985): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aircooledvwlite/com.aircooledvwlite.BT_activity_host}: java.lang.NullPointerException: Argument 'applicationId' cannot be null 10-31 22:03:53.241: E/AndroidRuntime(18985): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2308) 10-31 22:03:53.241: E/AndroidRuntime(18985): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358) 10-31 22:03:53.241: E/AndroidRuntime(18985): at android.app.ActivityThread.access$600(ActivityThread.java:153) 10-31 22:03:53.241: E/AndroidRuntime(18985): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247) 10-31 22:03:53.241: E/AndroidRuntime(18985): at android.os.Handler.dispatchMessage(Handler.java:99) 10-31 22:03:53.241: E/AndroidRuntime(18985): at android.os.Looper.loop(Looper.java:137) 10-31 22:03:53.241: E/AndroidRuntime(18985): at android.app.ActivityThread.main(ActivityThread.java:5227) 10-31 22:03:53.241: E/AndroidRuntime(18985): at java.lang.reflect.Method.invokeNative(Native Method) 10-31 22:03:53.241: E/AndroidRuntime(18985): at java.lang.reflect.Method.invoke(Method.java:511) 10-31 22:03:53.241: E/AndroidRuntime(18985): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795) 10-31 22:03:53.241: E/AndroidRuntime(18985): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562) 10-31 22:03:53.241: E/AndroidRuntime(18985): at dalvik.system.NativeStart.main(Native Method) 10-31 22:03:53.241: E/AndroidRuntime(18985): Caused by: java.lang.NullPointerException: Argument 'applicationId' cannot be null 10-31 22:03:53.241: E/AndroidRuntime(18985): at com.facebook.internal.Validate.notNull(Validate.java:29) 10-31 22:03:53.241: E/AndroidRuntime(18985): at com.facebook.Session.<init>(Session.java:281) 10-31 22:03:53.241: E/AndroidRuntime(18985): at com.facebook.Session.<init>(Session.java:270)
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
10/31/14 02:05 PM (9 years ago)
Ok i find the solution.. in the apps manifest i had to add this one : <service android:name="com.scringo.service.ScringoService" /> <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/replace_this_facebook_app_id"/> in order to work... also one notice for other users is that in order to make the scringo work , you have to add all the activite lines from the scringo/androidmanifest.xml
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.