Unable to run adb, check your Android SDK installation and ANDROID_SDK_ROOT environment variable: …AndroidSdkplatform-toolsadb.exe

Unable to run adb, check your Android SDK installation and ANDROID_SDK_ROOT environment variable: …AndroidSdkplatform-toolsadb.exe

Questions : Unable to run adb, check your Android SDK installation and ANDROID_SDK_ROOT environment variable: …AndroidSdkplatform-toolsadb.exe

792

When I start the project popup shows in4codes_adb “Flutter daemon terminate” and when starting in4codes_adb the flutter application it shows the “No in4codes_adb Connected Devices Found” dialog box. Then I in4codes_adb run flutter doctor -v doctor found issues in4codes_adb in:

Connected device (the doctor check crashed) X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues. X Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: C:UsersPulsaraAppDataLocalAndroidSdkplatform-toolsadb.exe • #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 AndroidDevices.pollingGetDevices (package:flutter_tools/src/android/android_device_discovery.dart:78:7) <asynchronous suspension> #2 PollingDeviceDiscovery._populateDevices (package:flutter_tools/src/device.dart:413:54) <asynchronous suspension> #3 Future.wait.<anonymous closure> (dart:async/future.dart) <asynchronous suspension> #4 DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:170:40) <asynchronous suspension> #5 DeviceValidator.validate (package:flutter_tools/src/doctor.dart:515:34) <asynchronous suspension> #6 asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:24) <asynchronous suspension> 

I already set up the SDK path as in4codes_adb ANDROID_SDK_TOOLS in user variables and in4codes_adb tools, and platform-tools in Path. And in4codes_adb reinstalled the platform-tools as well but in4codes_adb did not solve the issue. I cannot figure the in4codes_adb solution if anyone can give me a solution it in4codes_adb will be really appreciated.

Tis below log displays in the Event Log:

12/2/2021 12:26 AM 'C:UsersPulsaraAppDataLocalAndroidSdkplatform-  toolsadb.exe start-server' failed -- run manually if necessary 12:26 AM 'C:UsersPulsaraAppDataLocalAndroidSdkplatform-  toolsadb.exe start-server' failed -- run manually if necessary 12:26 AM * daemon not running; starting now at tcp:5037 12:26 AM * daemon started successfully 12:26 AM Adb connection Error:An existing connection was forcibly closed by the remote host 12:26 AM Cannot reach ADB server, attempting to reconnect. 

I still couldn’t solve the issue.

Total Answers 1
31

Answers 1 : of Unable to run adb, check your Android SDK installation and ANDROID_SDK_ROOT environment variable: …AndroidSdkplatform-toolsadb.exe

Try this step after not working on any in4codes_android-studio of the steps I mentioned in the in4codes_android-studio question.

The problem was in the antivirus in4codes_android-studio program. It denied access to starting in4codes_android-studio the flutter daemon on port 5037. I in4codes_android-studio simply uninstalled the antivirus program in4codes_android-studio from my device. Then it works like a in4codes_android-studio charm.

0