Define two strings use the same name label but diffrent product label in string.xml cause error in Android Studio -


here phenomenon, works in eclipse can't build in android studio:

it's android project. , define in string.xml this:

<string     name="nfc_quick_toggle_summary"     product="tablet">allow data exchange when tablet touches device </string> <!-- description of nfc in 1st level settings screen, phone. [char      limit=none] --> <string     name="nfc_quick_toggle_summary"     product="default">allow data exchange when phone touches device </string> 

and exception below:

error:execution failed task ':app:mergedebugresources'. 

d:\android\work\tvsoftap\app\src\main\res\values\string_wifi.xml: error: found item string/nfc_quick_toggle_summary more 1 time


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -