Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,018 Members 43,777 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Spasticdroid
Old
(Last edited by Spasticdroid; 31st August 2014 at 06:03 PM.)
#1  
Spasticdroid's Avatar
Senior Member - OP
Thanks Meter 416
Posts: 451
Join Date: Jan 2013
Location: New Castle, DE
Default Making my own ROM. Getting "use <add-resource> to add" errors that breaks my build

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.

Chromecast | FlashCast | Eureka ROM 17977.001
Google Nexus 5 | PA Custom Build | Linaro Kernel
History: iPhone 3GS>4>4S>5>Galaxy S3>Nexus 4>Nexus 5
 
ShinySide
Old
(Last edited by ShinySide; 21st August 2014 at 07:14 AM.)
#2  
ShinySide's Avatar
Senior Member
Thanks Meter 1,903
Posts: 1,666
Join Date: Nov 2013
Location: IHB
Haha never mind...I should of read your commit first
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes