Home > OS >  No res folder. No activity_main.xml. No activity. No layout
No res folder. No activity_main.xml. No activity. No layout

Time:10-30

I am just starting to use Android Studio.

I have followed the steps through in the Studio. I chose "Basic Activity". The app loads, but there's nothing but empty directories there and it has no activity folder or anything to edit the layout with.

I checked it in the Windows explorer, and it just looks the same as in Android studio.

I've read enter image description here

Edit: Someone told me I should just create a new activity. Being an absolute new person, I didn't know how to do that, so I looked enter image description here

CodePudding user response:

In the following menu click the arrow and select "Project" (is better):

enter image description here

Then go to "name of your project folder" > "app" > "src" > "main" > "res".

CodePudding user response:

I have no idea if this was what was causing it, but first I uninstalled then re-installed Android studio, deleted the old project, and created a new one.

It still didn't work, BUT I just noticed a little error log button.

You see, I named my application com.con.pfq. It wasn't liking the "con" part - said it's an invalid file name.

Sooo... I recreated the app as com.connoriscool.pfqmmobile. It liked that more.

No idea what's happening here, but that's the solution.

  • Related