ADB existed with exit code 1 (BEGINNER's QUESTION)

1,210 views
Skip to first unread message

Roland Huettmann

unread,
Feb 18, 2021, 11:02:46 AM2/18/21
to Flutter Development (flutter-dev)
Window 10, latest update, trying to run an emulated device, 8MB RAM

I am totally new to Flutter and Dart. I have experience with software development, but mainly using a non-standard language called LiveCode. Now, I want to learn Dart and Flutter. I just followed the installation description from flutter.dev step by step. I installed flutter with dart, Android Studio and also the SDKs in Studio.

My questions may be annoying as I am totally new here. My apologizes.

I am trying to run Test Drive with a predefined code. It is not working, even after trying for two days now.

1. Problem: Running cmd command: C\scr\flutter> flutter doctor gives two errors:

   x Flutter plugin not installed; this adds Flutter specific functionality.
   x Dart plugin not installed, this adds Dart specific functionality

I searched for the problem in Google, but nothing really helped. And really, the plugins are installed. Either this error is irrelevant, or something does not correctly point to the SDKs.

2. Problem:  AVD Manager: Virtual devices
   
I defined several virtual devices. Try to start them up ALWAYS results in an error message: AVD Manager: x Unable to locate adb.
But the device comes up nevertheless after some time (30 seconds... or longer).

Often enough, Windows flags the emulated device as not running with the spinning wheel, but clicking Wait it usually comes back. I assume a memory problem.

3. Problem: Running main.dart (the imported Flutter Demo) not working

I an "running"... ) ... but always there are error messages:

Console Error script
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install C:\Users\Rolan\AndroidStudioProjects\myapp\build\app\outputs\flutter-apk\app.apk:
Error launching application on AOSP on IA Emulator.

But all is installed. Maybe someone can help. I am wasting hours and hours.

Thank you in advance whoever can skip in... and give some help or point to help in this basic case.

Roland

Richard Rouzeau

unread,
Feb 18, 2021, 2:12:45 PM2/18/21
to Flutter Development (flutter-dev)
Did you install the Flutter plugin in Android Studio? Did you successfully create a new Flutter app in Android Studio?

Roland Huettmann

unread,
Feb 18, 2021, 2:45:21 PM2/18/21
to Flutter Development (flutter-dev)
Thank you for your answer.

Yes, of course, I installed everything including Android Studio (the error messages are from Android Studio Console). Flutter and Dart are installed and "doctored" as described. The SKD's in Android Studio are all there. I followed each step very carefully.

No, I never created a Flutter App successfully in Android Studio. That is why I am asking. I am a bit lost. There is enough RAM, there is enough space on my Intel Laptop, all installations were successful.

Roland

Suzuki Tomohiro

unread,
Feb 18, 2021, 3:10:22 PM2/18/21
to Flutter Development (flutter-dev)
Flutter doctor somehow does not detect Android Studio’s plugin. It’s not a problem to me; it just works for me.

Regarding adb failure, last time I observed simular strange errors, it was an antivirus software that deletes the Flutter app being developed.


--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/0514caa2-2696-41c0-aa3b-e915c723b7d7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages