Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
eduardojmrosa opened this issue May 28, 2024 · 1 comment
Open
3 tasks

Comments

@eduardojmrosa
Copy link

  • question
  • [x ] any problem or bug report

OS: (check one with "x")

  • [ x] Android
  • iOS
  • Browser

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
Copy link

GitToTheHub commented Jun 21, 2024

I made PR to fix this: #2941

For the deprecated Crosswalk WebView, the preference key "BackgroundColor" was wrongly set with "0". It would have to be set with "#000000", but this would also set the splashscreen backround color to black. So I had removed the preference.

Another way would be to add
<preference name="AndroidWindowSplashScreenBackground" value="#FFFFFF" /> in your config.xml

See: apache/cordova-android#1714 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants