nativescript-cli

NativeScript ./gradlew failed with exit code 1

ε祈祈猫儿з 提交于 2020-06-17 13:12:25
问题 Problem On Windows Subsystem Linux (WSL), during tns run android command: A problem was found with the configuration of task ':app:signingConfigWriterDebug'. File specified for property 'signingConfig.storeFile' does not exist. ./gradlew failed with exit code 1 回答1: Solution Copy platforms/android/~ directory to platforms/android/app/~ . 来源: https://stackoverflow.com/questions/61028194/nativescript-gradlew-failed-with-exit-code-1

Different release & debug config in a nativescript app

蓝咒 提交于 2019-12-24 19:14:25
问题 I've created 2 files: "config.debug.ts" & "config.release.ts". My understanding is that NativeScript's build script should copy the appropriate file to "config.ts" during the build. And then I should be able to do something like "import { config } from './config'" from my other *.ts files. That however does not happen and I'm getting a compilation error when doing "tns run". Now, I'm in doubt if I'm doing this properly at all.. What is the "true NS" way to have different configs for debug &