Closed
Description
Reported by: @MartoYankov
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 6.2.1
- Cross-platform modules: 6.2.0
- Android Runtime: 6.2.0
- iOS Runtime: 6.2.0
Describe the bug
To Reproduce
tns create newApp --js
rm -rf platforms
mkdir -p platforms/android
tns run android
Unable to apply changes on device: emulator-5554. Error is: spawn ./gradlew ENOENT.
will be thrown.
Expected behavior
The CLI should detect the invalid platforms
state and suggest something like rm -rf platforms
and npm cache clean --force
.
Additional context
The invalid folder should be also handled for iOS and cloud builds.