只記錄關(guān)鍵點,更多的參照官網(wǎng)
https://docs.nativescript.org/start/quick-setup
升級sdk的時候如果升級失敗歹垫,可以執(zhí)行一下命令
"%ANDROID_HOME%\tools\bin\sdkmanager" "platform-tools" "platforms;android-25" "build-tools;25.0.2" "extras;android;m2repository" "extras;google;m2repository"
官網(wǎng)有幾個例子都有或多或少問題?
https://github.com/tralves/nativescript-vue-webpack-template?
比方說這個剥汤,首先webpack4有較多問題,所以請?zhí)崆叭职惭b webpack@2.6.0+
安裝之后有概率情況出現(xiàn)報:Error: undefined:1:16: missing '{'
詳見?https://github.com/tralves/nativescript-vue-webpack-template/issues/26
建議采用另一套template
https://github.com/nativescript-vue/vue-cli-template/tree/master/template
tns debug android/ios