Issue
I used cordova version@6
with JDK 1.8
or greater but there are still I'm able to run an app on my android mobile
I try to run ionic Cordova run android
and so try to remove and reinstall the ionic Cordova platform android
BUILD SUCCESSFUL
Total time: 1 mins 18.416 secs
Built the following apk(s):
E:/Aproject/Project file/thenationaltv app/mynationaltv/platforms/android/build/outputs/apk/android-debug.apk
> native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk
No hardare devices found, attempting emulator...
Selected emulator HKE839LB
Error: ENOENT: no such file or directory, open 'E:\Aproject\Project file\thenationaltv app\mynationaltv\platforms\android\app\build\outputs\apk\debug\app-debug.apk'
[ERROR] An error occurred while running subprocess native-run.
native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Solution
Delete the android folder present in platform directory.
- ionic cordova platform add android
- ionic cordova build android
then run
ionic cordova run android --no-native-run
Answered By - Chanaka Weerasinghe
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.