Android, string resource not found Android, string resource not found android android

Android, string resource not found


Sometimes I get this error (once every 2 days), and it's because eclipse is not compiling the new code and it's deploying the old apk. I fix this by

  • doing a clean on eclipse (Project -> clean)
  • closing the emulator
  • restarting the adb server by running adb kill-server and adb start-server from the command line


Most likely there's an extra import android.R; Then your string can't be found there. Otherwise, clean the project and rebuild it, try again, then report back.


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.