Android, string resource not found

后端 未结 8 650
悲&欢浪女
悲&欢浪女 2020-12-20 11:45

I\'m working on an App, and I am getting weired errors. I put in some String resource in res/values/strings and saved it. Now If I want to access it in an Activ

8条回答
  •  时光取名叫无心
    2020-12-20 12:33

    There are two cases you may get this error

    1.your strings.xml file is not referred correctly?

    Ans:give the correct package name for R.java file as per you application?

    2.if you kept correct string.xlm path you may get still error?

    Ans:once clean and build the projector restart the eclipse or android studio.

    Thanks krishh

提交回复
热议问题