Android, string resource not found

后端 未结 8 619
悲&欢浪女
悲&欢浪女 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:45

    what i had was

    import android.R;

    instead of

    import com.example.project.R;

    android.R does not have your resources it only has the general android resources.

    0 讨论(0)
  • 2020-12-20 12:47

    Clean the project in eclipse, and try running.If this doesn't resolve your issue, from a already running emulator uninstall the app, and run it again from eclispe.

    0 讨论(0)
提交回复
热议问题