Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create new activity android studio

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.

New Activity

New>Activity

No activity created in layoud

like image 561
Mauro Stancato Avatar asked May 13 '19 01:05

Mauro Stancato


People also ask

What is an activity how can we create an activity in Android Ui?

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.

How to add new page in Android Studio?

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!


1 Answers

Delete caches folder from C:\Users\user Name\.AndroidStudio4.0\system worked for me.

like image 136
Md Shoumik Ahammed Avatar answered Nov 15 '22 08:11

Md Shoumik Ahammed