java.lang.NullPointerException: Argument ‘???’ cannot be [solved]


05-21 22:37:45.591: D/dalvikvm(8935): GC_CONCURRENT freed 391K, 5% free 8839K/9256K, paused 23ms+7ms, total 66ms
05-21 22:37:46.115: D/libEGL(8935): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
05-21 22:37:46.138: D/libEGL(8935): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
05-21 22:37:46.185: D/libEGL(8935): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
05-21 22:37:46.357: D/OpenGLRenderer(8935): Enabling debug mode 0
05-21 22:37:58.622: D/dalvikvm(8935): GC_CONCURRENT freed 342K, 4% free 8937K/9308K, paused 4ms+14ms, total 38ms
05-21 22:37:58.662: D/AndroidRuntime(8935): Shutting down VM
05-21 22:37:58.669: W/dalvikvm(8935): threadid=1: thread exiting with uncaught exception (group=0x40d41930)
05-21 22:37:58.669: E/AndroidRuntime(8935): FATAL EXCEPTION: main
05-21 22:37:58.669: E/AndroidRuntime(8935): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.disquss/com.example.disquss.MainLogin}: java.lang.NullPointerException: Argument 'applicationId' cannot be null
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.os.Looper.loop(Looper.java:137)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.ActivityThread.main(ActivityThread.java:5041)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at java.lang.reflect.Method.invokeNative(Native Method)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at java.lang.reflect.Method.invoke(Method.java:511)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:103)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at dalvik.system.NativeStart.main(Native Method)
05-21 22:37:58.669: E/AndroidRuntime(8935): Caused by: java.lang.NullPointerException: Argument 'applicationId' cannot be null
05-21 22:37:58.669: E/AndroidRuntime(8935):     at com.facebook.internal.Validate.notNull(Validate.java:29)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at com.facebook.Session.<init>(Session.java:224)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at com.facebook.Session.<init>(Session.java:209)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at com.example.disquss.MainLogin.onCreate(MainLogin.java:38)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.Activity.performCreate(Activity.java:5104)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
05-21 22:37:58.669: E/AndroidRuntime(8935):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
05-21 22:37:58.669: E/AndroidRuntime(8935):     ... 12 more

 

to solve the same problem with me add this line on androidManifest.xml

I’m getting this error after try to connect facebook API on android…:)


<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/applicationId"/>

3 thoughts on “java.lang.NullPointerException: Argument ‘???’ cannot be [solved]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s