java.lang.NullPointerException: Argument 'applicationContext' cannot be null JS: com.facebook.internal.Validate.notNull(Validate.java:76) JS: com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:194) JS: com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:174) JS: com.tns.Runtime.runModule(Native Method) JS: com.tns.Runtime.runModule(Runtime.java:241) JS: com.tns.Runtime.run(Runtime.java:235) JS: com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17) JS: android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017) JS: android.app.ActivityThread.handleBindApplication(ActivityThread.java:4864) JS: android.app.ActivityThread.access$1500(ActivityThread.java:178) JS: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1531) JS: android.os.Handler.dispatchMessage(Handler.java:111) JS: android.os.Looper.loop(Looper.java:194) JS: android.app.ActivityThread.main(ActivityThread.java:5643) JS: java.lang.reflect.Method.invoke(Native Method) JS: java.lang.reflect.Method.invoke(Method.java:372) JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

GitHub | PedroAnibarro1 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 96#237645728

    GitHub | 8 months ago | PedroAnibarro1
    java.lang.NullPointerException: Argument 'applicationContext' cannot be null JS: com.facebook.internal.Validate.notNull(Validate.java:76) JS: com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:194) JS: com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:174) JS: com.tns.Runtime.runModule(Native Method) JS: com.tns.Runtime.runModule(Runtime.java:241) JS: com.tns.Runtime.run(Runtime.java:235) JS: com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17) JS: android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017) JS: android.app.ActivityThread.handleBindApplication(ActivityThread.java:4864) JS: android.app.ActivityThread.access$1500(ActivityThread.java:178) JS: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1531) JS: android.os.Handler.dispatchMessage(Handler.java:111) JS: android.os.Looper.loop(Looper.java:194) JS: android.app.ActivityThread.main(ActivityThread.java:5643) JS: java.lang.reflect.Method.invoke(Native Method) JS: java.lang.reflect.Method.invoke(Method.java:372) JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
  2. 0

    GitHub comment 1935#208402098

    GitHub | 12 months ago | vchimev
    java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: java.lang.NullPointerException: Attempt to invoke direct method 'java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object[])' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Argument 'applicationContext' cannot be null JS: com.facebook.internal.Validate.notNull(Validate.java:76) JS: com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:194) JS: com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:174) JS: com.tns.Runtime.runModule(Native Method) JS: com.tns.Runtime.runModule(Runtime.java:241) JS: com.tns.Runtime.run(Runtime.java:235) JS: com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17) JS: android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017) JS: android.app.ActivityThread.handleBindApplication(ActivityThread.java:4864) JS: android.app.ActivityThread.access$1500(ActivityThread.java:178) JS: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1531) JS: android.os.Handler.dispatchMessage(Handler.java:111) JS: android.os.Looper.loop(Looper.java:194) JS: android.app.ActivityThread.main(ActivityThread.java:5643) JS: java.lang.reflect.Method.invoke(Native Method) JS: java.lang.reflect.Method.invoke(Method.java:372) JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

      at com.tns.Runtime.callJSMethodNative()
    2. com.tns
      Runtime.callJSMethod
      1. com.tns.Runtime.callJSMethodNative(Native Method)
      2. com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
      3. com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
      4. com.tns.Runtime.callJSMethod(Runtime.java:712)
      5. com.tns.Runtime.callJSMethod(Runtime.java:693)
      6. com.tns.Runtime.callJSMethod(Runtime.java:683)
      6 frames