直接run android
android-exception.jpg
tns-java-classes.js 文件驾胆, 如果出現(xiàn)如上問(wèn)題 的話鲤拿,需要將其刪除产场,再去 tns run android --emulator
使用bundle build android ,生成release版本每庆。
tns platform add android
tns run android
這會(huì)出來(lái) tns-java-classes.js
remove other files in platforms/android/src/main/app except fonts,images,app.css,package.json,tns-java-classes.js
OS="android" ENV_NODE="production" tns prepare android --bundle
,then you will see bundle.js in the above catalog.
filePath.jpg
remainFiles.jpg