Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 390
Sahal Zaman Avatar asked Aug 30 '17 09:08

Sahal Zaman


2 Answers

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

like image 68
Musthafa Avatar answered Oct 12 '22 16:10

Musthafa


  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).
like image 27
Bhavik Mehta Avatar answered Oct 12 '22 14:10

Bhavik Mehta