2

I'm starting the android tutorial at udacity. This course consist on creating a weather app sunshine. At the end of lesson 1 when I try to run my app, android studio marked it as DEAD.

enter image description here

I tried all the steps in a similar problem however the problem remain the same. Here is the adb logs:

DeviceMonitor: adb restarted PropertyFetcher: ShellCommandUnresponsiveException getting properties for device emulator-5554: null DeviceMonitor: ExecutionException getting info for device emulator-5554 DeviceMonitor: Adb rejected connection to client '14794': closed

Community
  • 1
  • 1
Nazih AIT BENSAID
  • 133
  • 1
  • 2
  • 13
  • It seems like ADB cannot connect to your device. Are you trying to run the application on an emulator or a real device? – TerNovi Nov 27 '15 at 14:49
  • I tried in both and got the same problem. When I access the app from the app icon in my device a message said "Unfortunately, Sunshine has stopped" – Nazih AIT BENSAID Nov 27 '15 at 15:44

3 Answers3

4
  1. Remove your device (Samsung GT-I9060I) from USB.
  2. Close Android Studio.
  3. Open Task Manager and kill all processes named adb.exe.
  4. Open Android Studio and wait until Gradle build is finished.
  5. Connect your device as emulator again.
  6. Run your app.

Btw, I also faced this issue a month ago, and those steps help me.

Anggrayudi H
  • 14,977
  • 11
  • 54
  • 87
2

I actually rebuild my application and it works. I have no explanation . I guess it has something with Android studio.

Nazih AIT BENSAID
  • 133
  • 1
  • 2
  • 13
0

The ADB still works unstable, and never mind which IDE are used Eclipse or new Android Studio. The workaround for this is to restart adb. Type in console:

 adb kill-server

 adb start-server
 * daemon not running. starting it now at tcp:5037 *
 * daemon started successfully *

Usually, this is enough condition to solve the issue for some time.

Dimon
  • 790
  • 1
  • 10
  • 24