Ionic v1 - crashing on Android 8 - TargetSdk 26+

Interesting problem. I can build using target 26 or higher, but app crashes on load on Android 8 (Oreo). 25 or lower, app runs fine. The play store now requires 26 or higher, so I am stuck.

Any insight on what might be causing this?

Your Cordova tooling (specifically cordova-android) seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here:

1 Like

I have updated everything, but the problem persists. I have reviewed the logs and I noticed permission errors for WRITE_CONTACTS or READ_CONTACTS that look to be required from crosswalk-webview. I have updated the AndroidManifest.xml adding:

The changes don’t seem to take when I re-run the Android build for the emulator. Same fatal permissions error in the logs.

Am I missing something? Is there a way I can add to the Manifest source so when I build a new Android project they are already present?

Thanks for any help.

Looks like my code was stripped.

<uses-permission android:name=“android.permission.READ_CONTACTS”/>
<uses-permission android:name=“android.permission.WRITE_CONTACTS”/>