Building my first android game and am getting "cannot resolve symbol R" (lines 31-39) on several java files for instance my EnemyShip class. Using Android Studio ver 2.3.3. I have enemy ship png's in my resources folder so don't really know why I'm getting this error.
R is a generated class. You may need to manually import it in to your code.
The R class should be in the top-level package for application. For example, in my case the top-level package for the application is: com.mcleodnet.hflink, so my code imports: import com.mcleodnet.hflink.R
The IDE takes care of building the R.java file. Often an error in an XML file will cause the IDE not to generate the R.java file. Check all the xml files for errors.