Reputation: 6387
I created my first Ionic 2 app and ran:
cordova build --release android
I don't want to release the app now, just try to install it on my phone. But when doing so I get an error on my Galaxy S5 saying:
App not installed
This generated an unsigned APK file.
I don't have any further error details, so I have no idea where to start debugging. My phone accepts apps from unknown sources as I have installed many unsigned apps from PhoneGap Build already.
Any ideas?
Upvotes: 3
Views: 4370
Reputation: 6151
the --release
option is to produce the final build (for release). Just remove this option for debugging.
Note that sometimes, some installations will fail if the debug application has been compiled on another machine and already installed on the device, in this case you need to uninstall it before trying to install.
If you have more problems leave a comment, i'll try to help.
Upvotes: 4