I have a problem with android studio. I'm developing a project where I have so many activities. But now, I've updated Android Studio to version 3.4 (April 2019) and I can't create a new activity. The ide doesn't show any error message, I press New> Empty Activity and I write the name of the activity and press 'Finish' but nothing happens in the layout. Does anybody know what kind of error it is? Thanks.
An activity represents a single screen with a user interface just like window or frame of Java. Android activity is the subclass of ContextThemeWrapper class. The Activity class defines the following call backs i.e. events. You don't need to implement all the callbacks methods.
1) Create a new activity by right-clicking on the Java folder > New > Activity > Blank Activity. This will automatically create a layout file and a Java class. It will also automatically register the activity in the manifest. That's it!
Delete caches folder from C:\Users\user Name\.AndroidStudio4.0\system
worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With