0

root@ubuntu:/home/tesema/moodleapp# npm run prod:android

moodlemobile@4.1.0 prod:android /home/tesema/moodleapp NODE_ENV=production ionic cordova run android --prod

[ERROR] Error while getting native targets for android: No valid Android Emulator home found.

    This error occurred while using native-run. You can try running this command with --no-native-run, which will
    revert to using Cordova.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! moodlemobile@4.1.0 prod:android: NODE_ENV=production ionic cordova run android --prod npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the moodlemobile@4.1.0 prod:android script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-12-29T06_59_24_442Z-debug.log

I ma trining to build android APk file by using command npm run prod:android and shows the following error` but it will comply successfully using command npm start. Is there any one has the solution for the above error. how can I generate apk file for android studio

0 Answers0