0

This dialogue box appears after I click run

When I run the android project I downloaded from Android Developers website, the edit configuration dialogue box shows up. When I press run again, it says the configuration is wrong.I am a beginner and have never opened any project (nor made in my android studio) before.

Appears if I again click run,says incorrect configuration

Another box after that which asks to set output path

I tried adding a configuration named "FragmentBasics" in the Application menu but it doesn't allow me to select the main class.

The java class doesnt get selected

camba1
  • 1,795
  • 2
  • 12
  • 18
RoliVerma
  • 1
  • 3

1 Answers1

0

(Tip: Update your Android Studio. It looks like an ancient version... Do that before doing anything else.)

(Prerequisites: Create an Android Virtual Device (AVD): Error running 'app: No target device found. Android Studio 3.6 Preview)

You don't have the right configurations.

(1 Go to the Configuration Dropdown Menu and click Edit Configurations.

enter image description here

(2 Delete existing configurations (None of the classes in your project have the "main" method declaration)

enter image description here

(3 Add an "Android" run config

enter image description here

(4 Fill in config information

enter image description here

Now you are ready to deploy your app (Assuming you have an AVD).


Hope I helped you!

enter image description here

SnakeException
  • 1,148
  • 1
  • 8
  • 26