apache / apache/cordova-android

Build failed with Invalid <color> for given resource value. error

Open
#1,714 18 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3.8k
Forks
1.6k
Avg merge
16h 18m
Merged PRs (30d)
11

Description

Hi, my project as cordova 12 with android 12 and i just update the android platform to 13, i change my jdk version to 17 and my gradle to 8.7 but when i run the cordova run android it keep send me this error

> Task :app:mergeDebugResources FAILED
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.

Already removed the platform, added it back. Clear the gradle cache and force npm cache clear.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `cordova run android` with the reported Cordova, Android platform, JDK 17, and Gradle 8.7 setup, then inspect the `:app:mergeDebugResources` failure and the referenced transformed `values.xml` from `jetified-play-services-base-18.0.1`. Done means the Android platform builds without the invalid `` resource error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, javascript
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.