Previous people have had the same error message, but the solution has always been to remove or modify some import \"android.R\". I have no such import so I\'m really lost
Try the following
com.example.mapssample.R.layout.activity_main