I am getting this error when I am using public.xml and 
different variables in with same name

for example 
in string.xml I have a variable green
in colors.xml also I have a color greeen

I am getting error in public.xml saying 

green has already been defined in this folder


On Tuesday, 5 August 2014 22:02:14 UTC+5:30, John wrote:
>
> I also get this error when using a public.xml file to statically define 
> resource id values.
>
> Android Studio 0.8.2
> Gradle 1.12
>
> On Saturday, January 4, 2014 1:40:23 AM UTC-5, Eugene wrote:
>>
>> Well, I get this error when merging various xml files with 
>> res/values/public.xml. The latter, by its nature, will always produce 
>> duplicate values.
>>
>> On Tuesday, August 13, 2013 9:17:01 PM UTC-7, Eason Lee wrote:
>>>
>>> Hi all,
>>>
>>> I'm new to gradle, but I got one problem and may need all your help, 
>>> thanks a lot.
>>> My Gradle version is:
>>> ------------------------------------------------------------
>>> Gradle 1.6
>>> ------------------------------------------------------------
>>> Groovy: 1.8.6
>>> Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
>>> Ivy: 2.2.0
>>> JVM: 1.6.0_26 (Sun Microsystems Inc. 20.1-b02)
>>> OS: Linux 3.0.0-32-generic-pae i386
>>>
>>> I get this error message:
>>>   Found item String/download_no_sdcard_dlg_title more than one time
>>>
>>> in case I have two string entries in strings.xml that have the follwoing 
>>> format:
>>>
>>>     <string name="download_no_sdcard_dlg_title" 
>>> product="nosdcard">TEST1</string>
>>>     <string name="download_no_sdcard_dlg_title" 
>>> product="default">TEST2</string>
>>>
>>> I got this error message by using "gradle assembleRelease --debug" and 
>>> failed in ":mergeReleaseResources" task.
>>>
>>>
>>> The error message is:
>>> java.io.IOException: Found item String/download_no_sdcard_dlg_title more 
>>> than one time
>>>     at 
>>> com.android.ide.common.res2.ValueResourceParser2.checkDuplicate(ValueResourceParser2.java:249)
>>>     at 
>>> com.android.ide.common.res2.ValueResourceParser2.parseFile(ValueResourceParser2.java:103)
>>>     at 
>>> com.android.ide.common.res2.ResourceSet.createResourceFile(ResourceSet.java:273)
>>>     at 
>>> com.android.ide.common.res2.ResourceSet.parseFolder(ResourceSet.java:248)
>>>     at 
>>> com.android.ide.common.res2.ResourceSet.readSourceFolder(ResourceSet.java:134)
>>>     at com.android.ide.common.res2.DataSet.loadFromFiles(DataSet.java:236)
>>>     at 
>>> com.android.ide.common.res2.ResourceSet.loadFromFiles(ResourceSet.java:47)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>     at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>
>>> According to someone posted the same case in 
>>> http://gc.codehum.com/p/android/issues/detail?id=57020.
>>>
>>> He could pass build using gradle 0.4.2 plugin, but failed after using 
>>> gradle > 0.4.2 version.
>>> My gradle plugin is 0.5.0, but I'm still confused how to fix this problem. 
>>> Could someone help me on it? 
>>> Thanks a lot for all your help.
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to