delete "import com.example.helloworld.r;" and then press ctrl+shift+letter "o"

hope this helps.


first clean your project and debug after that id cannot be resolved then check the android target version from project properties (rite click on project => select properties =>select android) and then check in android sdk manager (this same version installed or not with correct api) your problem will solve


also: remove "import android.r" from imports at top of file (if there)

Related Query

More Query from same tag