Greetings,
I am having problems compiling to Android all of a sudden and have not been able to identify the reason.
The error Volt is showing is:
UserError: FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs
See log for full details.
My settings are:
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="AndroidXEnabled" value="true" />
<preference name="android-targetSdkVersion" value="34" />
<engine name="android" spec="13.0.0" />
<platform name="android">
<allow-intent href="market:*" />
<config-file parent="/manifest" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</config-file>
</platform>
<platform name="ios">
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
<string>...</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>...</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>...</string>
</edit-config>
</platform>
<preference name="SplashScreenDelay" value="2000" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splashTemplate.png" />
<preference name="AndroidWindowSplashScreenBackground" value="#FFFFFF" />
<plugin name="cordova-plugin-file" spec="^8.0.0" />
<plugin name="cordova-plugin-x-socialsharing-android12" spec="^6.0.5" />
<plugin name="cordova-plugin-geolocation" spec="^5.0.0" />
<plugin name="cordova-plugin-network-information" spec="^3.0.0" />
<plugin name="cordova-plugin-camera" spec="^7.0.0" />
<plugin name="cordova-plugin-device" spec="^3.0.0" />
<plugin name="cordova-ios-plugin-no-export-compliance" spec="^0.0.6" />
<plugin name="cordova-plugin-speechrecognition" spec="^1.2.0" />
<plugin name="cordova-plugin-media" spec="^7.0.0" />
The relevant part for the full log error is this:
> Task :app:processDebugMainManifest FAILED
/platforms/android/app/src/main/AndroidManifest.xml:48:5-108 Error:
Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:48:5-108 duplicated with element declared at AndroidManifest.xml:43:5-81
/platforms/android/app/src/main/AndroidManifest.xml Error:
Validation failed, exiting
See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs
* 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 16s
25 actionable tasks: 25 executed
Command failed with exit code 1: /platforms/android/tools/gradlew cdvBuildDebug
2024-07-17 21:26:35,891 - FAILURE: Build failed with an exception.
I appreciate your help.