When I try to run my app back in Android Studio an “Edit Configuration”

16.3k views Asked by At

I have a project files.i need to understand the flow of the project but When I try to run my app back in Android Studio an “Edit Configuration” tab appears and I have the options to update settings regarding the package, activity and target device however I am not sure what to select.

Has anyone else come across this problem? please help me

4

There are 4 answers

3
Bhavik Mehta On
  1. It looks like you have not configured Android app, just click on the "Select Run/debug Configuration" which is on the left of RUN button and click on Edit Configurations. This will open a new screen where you can add a new configuration.
  2. Another issue is, you might not have Sync the project.To sync the project, go to build.gradle file -> Sync Now. If it is not not working, then change accordingly and then press "Sync Now" or "Try again".
  3. Also make sure that, if in case you have imported the modules, configure and import it correctly.And make sure that your build.gradle file is correct.
  4. Re-opening the android studio worked for me once i got this issue.
  5. In activity, select the Default Activity and in target device, Select whatever you are using(i.e Emulator or USB device).
1
Musthafa On

OK. I got you .

Please follow the steps below:

Click on File -> Project Structure ->(under Modules click on) app -> [Now you can select 'compile sdk version' and 'build tools version' accordingly from this window] -> click OK -> sync your project -> now clean and run the project.

NB: You have to choose the sdk version and build tools version - which is already downloaded in your android studio

0
kirti On

Simply Solve the problem just in one click i.e In Android Studio right side vertical "Gradel" option is there and click on "Refresh all Gradle Projects" (icon like refresh)

0
Aniket Sinha On

Updating the libraries worked for me. Go to the event log on bottom right and it will show the libraries which are outdated or not working properly !