Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Making my own ROM. Getting "use <add-resource> to add" errors that breaks my build

OP Spasticdroid

20th August 2014, 12:22 AM   |  #1  
Spasticdroid's Avatar
OP Senior Member
Flag New Castle, DE
Thanks Meter: 466
 
502 posts
Join Date:Joined: Jan 2013
More
EDIT: Solved

I hit a roadblock in getting my AOSP ROM to compile without error. Every time it gets up to what I think is framework-res.apk I'm getting this error

Code:
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:14: error: Resource does not already exist in overlay at 'config_disabledComponents'; use <add-resource> to add.
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:15: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:16: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:17: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:18: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:19: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:20: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.
vendor/minimal/overlay/common/frameworks/base/core/res/res/values/config.xml:21: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: *** Waiting for unfinished jobs....
amplihelix@Ubuntu-Satellite-P745:~/Android/development/MinimalAOSP$
This is what my config.xml overlay looks like over on GitHub

I've compared to other repositories and it looks fine but I cannot figure out what's causing this error. I would like to keep it in my overlay instead of directly editing config.xml in frameworks/base/core.

And finally, here's my source up on GitHub.

Thank you for any help provided.
Last edited by Spasticdroid; 31st August 2014 at 07:03 PM.
21st August 2014, 08:06 AM   |  #2  
ShinySide's Avatar
Senior Member
Flag IHB
Thanks Meter: 2,645
 
2,272 posts
Join Date:Joined: Nov 2013
More
Haha never mind...I should of read your commit first
Last edited by ShinySide; 21st August 2014 at 08:14 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes