【发布时间】:2016-11-17 12:43:40
【问题描述】:
在 Mac 上运行 this 应用程序,tns 2.4.0 npm 3.10.9 它使用nativescript-socketio 模块。 错误:
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: "nativescript-socketio", relative to: app/tns_modules/
com.tns.Module.resolvePathHelper(Module.java:159)
com.tns.Module.resolvePath(Module.java:60)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:514)
com.tns.Runtime.run(Runtime.java:509)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)
android.app.ActivityThread.access$1500(ActivityThread.java:144)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
android.os.Handler
此错误出现在 tns2.4.0 中,但不在 tns2.5.0 中。
【问题讨论】:
-
您的应用程序的链接已失效。你的问题到底是什么?也许:为什么问题只出现在 Nativescript 2.4.0 版?
标签: nativescript angular2-nativescript