Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't add activity in Android Studio

I am trying to add another activity to my project but it seems like the options for that are greyed out

Here's what it looks like to me:

enter image description here

like image 201
radioaktiv Avatar asked Jan 09 '23 07:01

radioaktiv


1 Answers

You need to change your minimum SDK level. That's why it's greyed out - yours is set to be too low.

In your AndroidManifest.xml, right under <manifest . . . >, add this:

 uses-sdk android:minSdkVersion="15" />

You can change the value there to any value...you only really need 8 or higher for most of the activities you are trying to add.

like image 70
Alex K Avatar answered Jan 22 '23 04:01

Alex K