【问题标题】:nativescript 'tns run android' throws ClassNotFoundExceptionnativescript 'tns run android' 抛出 ClassNotFoundException
【发布时间】:2016-07-01 19:00:09
【问题描述】:

我做了一个 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

【问题讨论】:

    标签: nativescript angular2-nativescript


    【解决方案1】:

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

    sudo npm install nativescript -g --unsafe-perm
    tns plugin remove tns-core-modules
    tns plugin add tns-core modules
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-05-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多