java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Fail to load module: /data/data/org.nativescript.my-app/files/app/main.js TypeError: Cannot read property 'getPackageName' of undefined File: "<unknown>, line: 1, column: 265 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/tns_modules/nativescript-videorecorder/videorecorder.js', line: 12, column: 38 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/app.component.js', line: 3, column: 10 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/main.js', line: 4, column: 23 Frame: function:'require', file:'', line: 1, column: 266

GitHub | abhayastudios | 5 months ago
  1. 0

    plugin not working for me

    GitHub | 5 months ago | abhayastudios
    java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Fail to load module: /data/data/org.nativescript.my-app/files/app/main.js TypeError: Cannot read property 'getPackageName' of undefined File: "<unknown>, line: 1, column: 265 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/tns_modules/nativescript-videorecorder/videorecorder.js', line: 12, column: 38 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/app.component.js', line: 3, column: 10 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/main.js', line: 4, column: 23 Frame: function:'require', file:'', line: 1, column: 266
  2. 0

    app crash when using npm modules

    GitHub | 7 months ago | yegor-sytnyk
    java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Failed to find module: "email-validator", relative to: /app/tns_modules/
  3. 0

    GitHub comment 71#222378152

    GitHub | 6 months ago | aandino-dev
    java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Failed to find module: "angular2/core", relative to: /app/tns_modules/
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    tests with tns-android 2.2.0 not working

    GitHub | 3 months ago | hypery2k
    java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: metadata file (treeNodeStream.dat) couldn't be opened!
  6. 0

    Including plugin causes android app to crash

    GitHub | 6 months ago | lowe0292
    java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Fail to load module: /data/data/com.yourdomain.appname/files/app/app.js TypeError: Cannot read property 'client' of undefined File: "<unknown>, line: 1, column: 265 StackTrace: Frame: function:'', file:'/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-websockets/websockets.js', line: 44, column: 36 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-firebase/firebase.js', line: 1, column: 70 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/com.yourdomain.appname/files/app/app/components/home/home.component.js', line: 16, column: 16 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/com.yourdomain.appname/files/app/app/components/app/app.component.js', line: 21, column: 24 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/com.yourdomain.appname/files/app/pages/app/app.component.js', line: 25, column: 23 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/com.yourdomain.appname/files/app/app.js', line: 19, column: 23 Frame: function:'require', file:'', line: 1, column: 266

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.tns.NativeScriptException

      Fail to load module: /data/data/org.nativescript.my-app/files/app/main.js TypeError: Cannot read property 'getPackageName' of undefined File: "<unknown>, line: 1, column: 265 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/tns_modules/nativescript-videorecorder/videorecorder.js', line: 12, column: 38 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/app.component.js', line: 3, column: 10 Frame: function:'require', file:'', line: 1, column: 266 Frame: function:'', file:'/data/data/org.nativescript.my-app/files/app/main.js', line: 4, column: 23 Frame: function:'require', file:'', line: 1, column: 266

      at com.tns.Runtime.runModule()
    2. com.tns
      NativeScriptApplication.onCreate
      1. com.tns.Runtime.runModule(Native Method)
      2. com.tns.Runtime.runModule(Runtime.java:241)
      3. com.tns.Runtime.run(Runtime.java:235)
      4. com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)
      2. android.app.ActivityThread.handleBindApplication(ActivityThread.java:5113)
      3. android.app.ActivityThread.access$1600(ActivityThread.java:177)
      4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1509)
      5. android.os.Handler.dispatchMessage(Handler.java:102)
      6. android.os.Looper.loop(Looper.java:145)
      7. android.app.ActivityThread.main(ActivityThread.java:5942)
      7 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
      2 frames