How to Fix Missing Activity_main.xml in Android Studio - Layout Folder Not Showing or Can't Find

Опубликовано: 14 Ноябрь 2024
на канале: SoftTrick
196
2

In This Video We Will See How to Fix Missing Activity_main.xml in Android Studio or Layout Folder Not Showing or Can't Find

Here Are The Steps to Fix Missing Activity_main.xml in Android Studio or Layout Folder Not Showing or Can't Find

Method 1

1. Right-Click on kotlin+java or Java Whatever is Present in Your Android Studio
2. Click New
3. Click Activity
4. Click "Empty View Activity"
5. Type Whatever Activity Name You Want
6. Tick Launcher Activity
7. Select Language as Your Preferred Language
8. Click Finish Button
9. Wait For Background Tasks to Finish
10. You Will See layout Expand it
11. Now You Will See activity_main.xml Double-Click on it
12. Done!


Method 2

1. Click Main Menu iCon & Then File or File. This Will Depend on Android Studio Version You Are Using
2. Click New
3. Click New Project
4. Click "Empty Views Activity"
5. Click Next Button
6. Type Your Application Name
7. Select Your Preferred Language
8. Click Finish Button
9. Wait For Background Tasks To Finish
10. Now Expand Project File to Check if activity_main.xml File is Present or not
11. Expand layout Folder
12. You Will See activity_main.xml Double-Click on it
13. Done!