This used to build and install quite happily on all devices. A couple of days ago I tried wrapping it up and signing a release for the play store. Somewhere in the process of cleaning it up and upgrading various libraries I broke it. Now I can’t get back to a working archive.
I build my app with ionic cordova build --debug android
. On a Huawei P20 running Android 8.1.0 loading the apk fails. I can’t see anything in an adb logcat console and the message on the screen is just “App not installed”. It will install from the same package on a MotoG5 running Android 7. It had previously worked on both phones.
I’ve updated (and downgraded) cordova-android, updated Gradle, updated Android Studio removed Ionic Pro and Crosswalk since then. I’ve deleted and rebuilt nodes_modules, removed/added the Android platform, built and rebuilt the package. Adding those components back in leads to other issues. Running the install with Crosswalk now works but on launch of the app says it’s the incorrect CPU architecture. That’s with the arm64 image, which previously worked. When I compile a single install image for all platforms the resultant app hangs on the splashscreen.
Creating a new project with this development environment results in an installable archive for all devices. But when I try to port the app over to the new scaffolding I’m presented with myriad trivial seeming issues and I still don’t know if it will ultimately succeed. So I’d like to fix this install in place. I have also tried building a release version and signing it. It fails install on both the MotoG5 and the P20 in the same way; “App not installed”. It won’t build and deploy onto the device from the terminal command. I find that has always happened intermittently. So when it does I copy the apk to the mobile and run it myself.
Ionic:
ionic (Ionic CLI) : 4.1.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.1.1
Cordova Plugins : no whitelisted plugins (8 plugins total)
System:
Android SDK Tools : 26.1.1 (/home/~/Android/Sdk)
NodeJS : v10.4.1 (/usr/local/bin/node)
npm : 6.4.1
OS : Linux 4.15
Android Studio: 3.1.4
------------------------------------------------------------
Gradle 4.10
------------------------------------------------------------
Build time: 2018-08-27 18:35:06 UTC
Revision: ee3751ed9f2034effc1f0072c2b2ee74b5dce67d
Kotlin DSL: 1.0-rc-3
Kotlin: 1.2.60
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_171 (Oracle Corporation 25.171-b11)
OS: Linux 4.15.0-33-generic amd64
Installed plugins
------------------------------------------------------------
cordova-android-support-gradle-release 1.4.4 "cordova-android-support-gradle-release"
cordova-plugin-ble-central 1.2.2 "BLE"
cordova-plugin-brightness 0.1.5 "Brightness"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-sqlite-2 1.0.4 "SQLitePlugin"
cordova-plugin-statusbar 2.4.1 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
package.json dependencies
------------------------------------------------------------
"@angular/animations": "^6.1.4",
"@angular/common": "^6.1.4",
"@angular/compiler": "^6.1.4",
"@angular/compiler-cli": "^6.1.4",
"@angular/core": "^6.1.4",
"@angular/forms": "^6.1.4",
"@angular/platform-browser": "^6.1.4",
"@angular/platform-browser-dynamic": "^6.1.4",
"@ionic-native/ble": "^4.12.0",
"@ionic-native/brightness": "^4.12.0",
"@ionic-native/core": "^4.12.0",
"@ionic-native/device": "^4.12.0",
"@ionic-native/keyboard": "^4.12.0",
"@ionic-native/splash-screen": "^4.12.0",
"@ionic-native/status-bar": "^4.12.0",
"@ionic/storage": "^2.1.3",
"@types/cordova": "0.0.34",
"@types/core-js": "^2.5.0",
"@types/node": "^10.9.3",
"aes-js": "^3.1.1",
"chart.js": "^2.7.2",
"cordova-android": "7.1.1",
"cordova-android-support-gradle-release": "^1.4.4",
"cordova-plugin-ble-central": "^1.2.2",
"cordova-plugin-brightness": "^0.2.0",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-sqlite-2": "^1.0.5",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"gsap": "^2.0.2",
"ionic-angular": "^3.9.2",
"ionic-tooltips": "^2.0.1",
"ionicons": "^4.4.3",
"jsonwebtoken": "^8.3.0",
"moment": "^2.22.2",
"ng2-charts": "^1.6.0",
"rxjs": "^6.2.2",
"rxjs-compat": "^6.2.2",
"sw-toolbox": "3.6.0",
"zone.js": "^0.8.26"