3

I'm building an app in Android Studio. After some time the app stopped reflecting the progress of the building development. I then uninstalled the app from the emulator and it has not installed although build is successful every time. I built the apk for the app and dragged it to the emulator. App is installed but does not start. Is there anything to make it work?

Have done the following:

  1. enabled and disabled Instant Run
  2. enabled and disabled ADB integration
  3. restarted Android Studio added debug{debuggable true} to buildTypes in the app gradle even though it is not advisable

Device Monitor says "ADB rejected shell command (ls -l /)" and "Adb connection Error:EOF"

Thank you

PS: Android Studio version 3.0.1

tfad334
  • 558
  • 6
  • 14

4 Answers4

0

Check "minSdkVersion" in App Gradle. if it is less than the Emulator which you have then it will not install or run on it. Make sure "minSdkVersion" should be greater than or equal to Emulator API level.

Nikhil Lotke
  • 605
  • 7
  • 15
  • The minSdkVersion is 15 and I use Nexus 5X API 26 which matches the compileSdkVersion. So that's not the problem. Thanks for trying to help out. – tfad334 Dec 19 '17 at 09:22
0

In Android studio Go to "Build Variant" tab and then change your application build Varian to Debug.

Anbarasu Chinna
  • 975
  • 9
  • 28
0

Finally solved it. Thanks to Andy Boot's answer to this question. In short:

  1. I went to Run->Edit Configurations->Android App->app
  2. The Launch droplist had 'Default Activity' selected. I changed that to 'Specified Activity'
  3. I then filled in 'MainActivity' in the Activity field, which has the 'LAUNCHER' intent in the Manifest file.

And that got my app running once again on the emulator ;)

Thanks, everyone.

tfad334
  • 558
  • 6
  • 14
0

Do the following if you are facing like Gradle Build finished successfully while running app but app is not installed in Mobile or Android Emulator then follow the steps

STEP-1STEP-2STEP-1

In 3rd image 'Deploy' and 'Launch' options should be selected as shown in picture. Apply settings and click OK. YOU DONE.. HAPPY CODING.

Ashok
  • 55
  • 1
  • 10