dpa99c / phonegap-launch-navigator

Phonegap/Cordova plugin which launches native route navigation apps for Android, iOS and Windows
369 stars 131 forks source link

Ionic 5 build error #269

Closed evansbusobozi closed 2 years ago

evansbusobozi commented 3 years ago

Bug report

CHECKLIST

Current behavior: I added this plugin to my project but when I tried to build my project, the build failed with the error below. I then created a blank project to reproduce the issue, added this plugin successfully as described in the docs, attempted to build and the build still failed with the same error. What could be the issue causing this?

FAILURE: 23 actionable tasks: 23 executed
Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  E:\Projects\navigator\platforms\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:30: AAPT: error: unexpected element <queries> found in <manifest>.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 26s
E:\Projects\navigator\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  E:\Projects\navigator\platforms\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:30: AAPT: error: unexpected element <queries> found in <manifest>.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 26s
[ERROR] An error occurred while running subprocess cordova.

        cordova.cmd build android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

Expected behavior: The app is expected to build and run successfully without any errors.

Steps to reproduce:

Environment information

Android build issue:

timmyomahony commented 2 years ago

Did you find a solution to this? I'm encountering it also.

dpa99c commented 2 years ago

You need to update to cordova-android@10+ and target SDK API 30+ Latest is cordova-android@11 which targets API 32.

timmyomahony commented 2 years ago

Thanks for the quick follow-up. That fixed it.