2

我做了一个 nativescript 杂货店 git repo 的新克隆,并检查了 angualr-start 分支,做了“平台添加 android”,然后“tns run android”(我的 android 设备已连接)应用程序出现并显示此错误: pastebin.com/1YbThGkZ

也许错误中最重要的部分是:

java.lang.ClassNotFoundException: Didn't find class "com.tns.FragmentClass" on path: DexPathList[[zip file "/data/app/org.nativescript.groceries-1/base.apk"],nativeLibraryDirectories=[/data/app/org.nativescript.groceries-1/lib/arm, /data/app/org.nativescript.groceries-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /systementer code here/lib]]

解决方案:升级到原生脚本(和 tns-core-modules)v2.1

4

1 回答 1

4

升级到本机脚本(和 tns-core-modules)v2.1

sudo npm install nativescript -g --unsafe-perm
tns plugin remove tns-core-modules
tns plugin add tns-core modules
于 2016-07-01T19:01:22.947 回答