-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Hi,
I am getting this error only while building apk, when I run or debug in emulator or in actual device using USB it's working absolutely fine.. but when i build apk using tns build android / sidekick, it shows this error.
An uncaught Exception occurred on "main" thread.
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException:
Error calling module function
Error calling module function
Error calling module function
Error: com.tns.NativeScriptException: Failed to find module: "./_Services/UserService", relative to: app/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:530)
com.tns.Runtime.run(Runtime.java:522)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5455)
android.app.ActivityThread.-wrap2(ActivityThread.java)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1574)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:163)
android.app.ActivityThread.main(ActivityThread.java:6237)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
File: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/app.component.js', line: 4, column: 21
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/app.module.js', line: 8, column: 23
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/main.js', line: 5, column: 20
Frame: function:'require', file:'', line: 1, column: 266
Error: com.tns.NativeScriptException: Failed to find module: "./_Services/UserService", relative to: app/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:530)
com.tns.Runtime.run(Runtime.java:522)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5455)
android.app.ActivityThread.-wrap2(ActivityThread.java)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1574)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:163)
android.app.ActivityThread.main(ActivityThread.java:6237)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
File: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/app.component.js', line: 4, column: 21
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/app.module.js', line: 8, column: 23
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/main.js', line: 5, column: 20
Frame: function:'require', file:'', line: 1, column: 266
Error: com.tns.NativeScriptException: Failed to find module: "./_Services/UserService", relative to: app/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:530)
com.tns.Runtime.run(Runtime.java:522)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5455)
android.app.ActivityThread.-wrap2(ActivityThread.java)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1574)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:163)
android.app.ActivityThread.main(ActivityThread.java:6237)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
File: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/app.component.js', line: 4, column: 21
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/app.module.js', line: 8, column: 23
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.socialstock.com/files/app/main.js', line: 5, column: 20
Frame: function:'require', file:'', line: 1, column: 266
Please help