Android's strings with product tag cann't compile.

Answered

In Android project, my code in strings.xml is like this: 

 

But it always report errors like this, when I compile it.
Who can tell me why it like this, and how can I to fix it?

Of cause, I can't delete the product tag or delete one of two strings. My app needs to adept the phone and tablet automatically.

Thanks very much!

2 comments
Comment actions Permalink

It's Android limitation, string name must be unique, see http://stackoverflow.com/a/22535312/104891.

Not related to IntelliJ IDEA.

0
Comment actions Permalink

Thanks for your reply!

Android SystemUI has many strings.xml like this.  It's too bad.

Maybe it means they don't want me to use intellij or Android-studio.

0

Please sign in to leave a comment.