I just had a working app turn into a broken one. When I call any findViewById
, the app cannot browse R properly and says R cannot be resovled to variable. So none of my drawables and code can be read. It says to import R but then it gets even further into the rabbit hole of fustration.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
edit: I had an error within my strings.xml. IT now works. Thanks to the helpful comments.