Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Unable to generate release APK using command ionic cordova build android --prod –release

$
0
0

Command Executed:
ionic cordova build android --prod –release

Error

cordova.cmd build android –release
The platform “–release” does not appear to have been added to this project.
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android –release exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

Ionic INFO

D:>ionic info

Ionic:

Ionic CLI : 6.16.3 (C:\Users\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.0.7
@angular-devkit/build-angular : 0.901.15
@angular-devkit/schematics : 9.1.3
@angular/cli : 9.1.15
@ionic/angular-toolkit : 2.3.3

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : 6.0.0, android 9.0.0, browser, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.0, (and 20 other plugins)

Utility:

cordova-res : 0.15.3
native-run : 1.4.0

System:

Android SDK Tools : 26.1.1 (C:\Users\AppData\Local\Android\Sdk)
NodeJS : v14.17.1 (C:\Program Files\nodejs\node.exe)
npm : 6.14.13
OS : Windows 10

I don’t think it’s related to specific project, its a setup issue…
Please Help…

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>