android studio Execution failed for task ':app:mergeDebugResources' -


i decompiled app using online tool (www.decompileandroid.com) then, after downloaded zipped source code (assets + java code), extracted in folder , imported folder in android studio (file>new>import project). then, without editing file, tried run project got error:

error: found item ###/item-name more 1 time

error:execution failed task ':app:mergedebugresources'. > c:\users\fabrizio\androidstudioprojects\com.hwlogos.ytstars\app\src\main\res\values\public.xml: error: found item ###/item.name more 1 time 

i searched web hours can't find useful answer...

please help!

ps: tried other applications same error...

update:

now tried decompile simple app created android studio , when reimported in android studio got same error. seems there 2 resources same name, 1 declared string , other id. here's part of public.xml, never wrote when made application!!!

<public type="string" name="action_settings" id="0x7f070006" /> <public type="id" name="action_settings" id="0x7f09000a" /> 

create new xml ids.xml in values id values constant.

<resources>   <item type="id" name="index_row_search" /> </resources> 

i think better if copy resource ids public.xml r.java, first time avoid errors entry index larger available symbols , keep type of resource consistent.

visit here more how add id public.xml?


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -