Solved: Build android does not produce the apk


#1

Hi all,
this morning I tried to rebuild an app that I’ve already builded many times, but today happens something strange.
The build command ends without producing the apk.
Any ideas about this problem?

This is the output of the command:

>ionic build android --release
Running app-scripts build: --release

[12:33:08]  build dev started ...
[12:33:08]  clean started ...
[12:33:08]  clean finished in 6 ms
[12:33:08]  copy started ...
[12:33:08]  transpile started ...
[12:33:11]  transpile finished in 2.55 s
[12:33:11]  preprocess started ...
[12:33:11]  deeplinks started ...
[12:33:11]  deeplinks finished in 41 ms
[12:33:11]  preprocess finished in 44 ms
[12:33:11]  webpack started ...
[12:33:11]  copy finished in 3.02 s
[12:33:16]  webpack finished in 5.66 s
[12:33:16]  sass started ...
[12:33:17]  sass finished in 794 ms
[12:33:17]  postprocess started ...
[12:33:17]  postprocess finished in 9 ms
[12:33:17]  lint started ...
[12:33:17]  build dev finished in 9.11 s
> ionic cordova prepare
> cordova prepare
√ Running command - done!

... some warning

[12:33:20]  lint finished in 3.24 s

After lint finished, nothing happens.

cld


#2

Excuse me.
I have to run “ionic cordova build android” and not “ionic build android”


#3

Did using the correct command fix the problem?


#4

yes, it fixes the problem


#5

I had the exact same problem, thanks to you i figured it out quickly.