Search code examples
androideclipser.java-file

Android R.java Cannot be Resolved Without Full Path


As you can see from the capture. My ALL projects' R.java file cannot be resolved if i dont import full path of my R.java but yesterday when i was doing somethings only android.R was enough to resolve. What is the problem? I cleaned my projects 5-6 times. Restart pc and Eclipse. Problem is the same. What can cause to this?

android.R -> cannot be resolved

com.example.helloWorld.R works good

enter image description here


Solution

  • android.R -> Android internal resources file. You don't want to import that.

    The R.java file is used to store resource ids. android.R stores, like said, framework resources. com.example.helloWorld.R is the R.java file for your resource Ids.