Why? only app-debug.apk --> can't create release.apk

I am using ionic3 version.
Build after ionic update, but only debug.apk file is created, release file is not created.

ionic cordova build android --prod --release

:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug
:CordovaLib:transformNativeLibsWithStripDebugSymbolForDebug
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug
:app:mergeDebugJniLibFolders
:app:processDebugJavaRes NO-SOURCE
:app:validateSigningDebug
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a de
precated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavacNote: Some input files use or override a deprecate
d API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:app:compileDebugSources
:app:transformClassesWithStackFramesFixerForDebug
:app:transformClassesWithDesugarForDebug
:app:transformClassesWithDexBuilderForDebug
:app:transformDexArchiveWithExternalLibsDexMergerForDebug
:app:transformDexArchiveWithDexMergerForDebug
:app:transformNativeLibsWithMergeJniLibsForDebug
:app:transformNativeLibsWithStripDebugSymbolForDebug
:app:transformResourcesWithMergeJavaResForDebug
:app:packageDebug
:app:assembleDebug
:app:cdvBuildDebug

BUILD SUCCESSFUL in 31s
49 actionable tasks: 49 executed
Built the following apk(s):
*E:\ulsss\auction\platforms\android\app\build\outputs\apk\debug*
app-debug.apk

<-- can’t make release apk
help me!!

Hi, I got the same issue with ionic4. Currently I’m trying : ionic cordova build android --prod – --release

Yes, the same here, also,
ionic cordova run android --livereload --debug
doesn’t work, the console ends in “Build successful” but the watch is not activated.

Downgrading to 5.4.6 fixed it.

npm i ionic@5.4.6

1 Like

I solved it!
Thanks to you Thank you very much.