mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 913 forks source link

Invalid <color> for given resource value causing build failed error #2931

Open eduardojmrosa opened 1 month ago

eduardojmrosa commented 1 month ago

OS: (check one with "x")

cordova information: (run $> cordova plugin list) Cordova - 12 Android - 13

insert the output from the command here

Plugin list

cordova-plugin-camera 7.0.0 "Camera" cordova-plugin-contacts 3.0.1 "Contacts" cordova-plugin-device 2.1.0 "Device" cordova-plugin-file-transfer 2.0.0 "File Transfer" cordova-plugin-file 8.0.1 "File" cordova-plugin-firebase-analytics 8.0.0 "FirebaseAnalyticsPlugin" cordova-plugin-firebase-dynamiclinks 8.0.0 "FirebaseDynamicLinksPlugin" cordova-plugin-firebase-messaging 8.0.1 "FirebaseMessagingPlugin" cordova-plugin-keyboard 1.2.0 "Keyboard" cordova-plugin-nativegeocoder 3.5.1 "NativeGeocoder" cordova-plugin-x-socialsharing 6.0.4 "SocialSharing" cordova-sqlite-storage 6.1.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version" cordova-support-android-plugin 2.0.4 "cordova-support-android-plugin" cordova.plugins.diagnostic 7.1.4 "Diagnostic" es6-promise-plugin 4.2.2 "Promise" ###################################################

Current behavior: Installing the plugin into Android 13 version using only cordova in a angular app causes this error:

C:\Users\eduar.gradle\caches\transforms-4\01bf680c3083cc7cc00592872a745a49\transformed\jetified-play-services-base-18.0.1\res\values\values.xml:4:0: Invalid for given resource value.

Expected behavior: Supposed to run a npx cordova run android and it builds sucessfully, with version 12 it works well.

Screen capture or video record: image

GitToTheHub commented 1 week ago

It's a bug with cordova-android 13.

You have to add <preference name="AndroidWindowSplashScreenBackground" value="#FFFFFF" /> in your config.xml

See: https://github.com/apache/cordova-android/issues/1714#issuecomment-2135731585