r/AndroidStudio • u/[deleted] • Jul 05 '21
help me get past this error causing line : tools:context=".MainActivity"
2
Upvotes
1
u/minibuster Jul 05 '21
What does your AndroidManifest.xml look like? And does the package you have entered in there match the package of your MainActivity class?
→ More replies (1)2
2
u/oreocoloredcat Jul 06 '21
Go to file > invalidate cache and restart
Common problem I’ve seen when making activities from time to time
Also make sure your mainactivity extends appcompatactivity
Also I highly recommend making your new project in kotlin :D