Adb exited with exit code 1 android studio

Содержание
  1. Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:\Users\ML\AndroidStudioProjects\i_am_rich\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8. #65308
  2. Comments
  3. AqeelTariq97 commented Sep 6, 2020 •
  4. Error
  5. flutter Doctor show no issue
  6. flutter doctor
  7. adb: failed to install /Users/snow/test/AndroidStudioProjects/flutter_weather/build/app/outputs/apk/app.apk: #48064
  8. Comments
  9. nanyawei commented Jan 2, 2020
  10. VladyslavBondarenko commented Jan 2, 2020
  11. nanyawei commented Jan 3, 2020
  12. VladyslavBondarenko commented Jan 3, 2020
  13. timka2106 commented Apr 24, 2020
  14. AqeelTariq97 commented Sep 5, 2020 •
  15. error
  16. flutter doctor
  17. Error: ADB exited with exit code 1 #52887
  18. Comments
  19. Vuyisile619 commented Mar 19, 2020 •
  20. Steps to Reproduce
  21. VladyslavBondarenko commented Mar 19, 2020
  22. VladyslavBondarenko commented Mar 20, 2020 •
  23. Error getting device API level. Original error: Error executing adbExec #12736
  24. Comments
  25. Amrkamel1 commented Jun 7, 2019 •
  26. Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk’ exited with code 3221226356′; Stderr: »; Code: ‘3221226356’
  27. Environment
  28. Details
  29. Link to Appium logs

Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:\Users\ML\AndroidStudioProjects\i_am_rich\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8. #65308

Comments

AqeelTariq97 commented Sep 6, 2020 •

Error

Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:\Users\ML\AndroidStudioProjects\i_am_rich\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8.

flutter Doctor show no issue

flutter doctor

C:\Users\ML>flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18362.1016], locale en-US)
• Flutter version 1.20.3 at C:\src\flutter
• Framework revision 216dee6 (4 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2

[√] Android toolchain — develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\ML\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.

[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (1 available)
• Redmi 8 (mobile) • c255a8000007 • android-arm64 • Android 10 (API 29)

• No issues found!

The text was updated successfully, but these errors were encountered:

Источник

adb: failed to install /Users/snow/test/AndroidStudioProjects/flutter_weather/build/app/outputs/apk/app.apk: #48064

Comments

nanyawei commented Jan 2, 2020

How does it work ? Only android failed

flutter doctor -v

The text was updated successfully, but these errors were encountered:

VladyslavBondarenko commented Jan 2, 2020

Hi @nanyawei
From your flutter doctor -v I can see that connected device is offline.
If it’s a real device, try to

  1. disconnect it
  2. turn Off “USB Debugging” and turn it on
  3. connect the device again

Does it help you?
Thank you

Читайте также:  Настройки прокси сервера для android

nanyawei commented Jan 3, 2020

thanks, My .bash_profile profile configuration problem

VladyslavBondarenko commented Jan 3, 2020

I’m glad that you fixed the problem,
thank you for letting me know.
I feel safe to close this issue,
if you disagree please write in the comments
and I will reopen it

timka2106 commented Apr 24, 2020

Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install D:\Android Studio\flut proje\flutter_app\build\app\outputs\apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Error launching application on POCO X2.

forgive you tell me how to solve

AqeelTariq97 commented Sep 5, 2020 •

flutter doctor shows no issue but the error still not gone

error

Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install C:\Users\ML\AndroidStudioProjects\i_am_rich\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Error launching application on Redmi 8.

flutter doctor

C:\Users\ML>flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18362.1016], locale en-US)
• Flutter version 1.20.3 at C:\src\flutter
• Framework revision 216dee6 (4 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2

[√] Android toolchain — develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\ML\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.

[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (1 available)
• Redmi 8 (mobile) • c255a8000007 • android-arm64 • Android 10 (API 29)

Источник

Error: ADB exited with exit code 1 #52887

Comments

Vuyisile619 commented Mar 19, 2020 •

Steps to Reproduce

Hey guys. when i try running a flutter project i get this error from my cmd

Please help what could be the problem

The text was updated successfully, but these errors were encountered:

VladyslavBondarenko commented Mar 19, 2020

Hi @Vuyisile619
Do workarounds from #34001 help you?

VladyslavBondarenko commented Mar 20, 2020 •

@VladyslavBondarenko hie thanks for the response.Well it did kind of help i wiped out the data from the virtual device and it started working but when i hit flutter run, the virtual device would freeze or just stop itself and then the logs would end like this

C:\AndroidStudioProjects\flutterapp\test_project>flutter run
Using hardware rendering with device AOSP on IA Emulator. If you get graphics artifacts, consider enabling software
rendering with «—enable-software-rendering».
Launching lib\main.dart on AOSP on IA Emulator in debug mode.
Running Gradle task ‘assembleDebug’.

Running Gradle task ‘assembleDebug’. Done 1260,5s (!)
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk.
167,2s (!)
D/FlutterActivity( 5482): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate( 5482): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate( 5482): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
Flutter is taking longer than expected to report its views. Still trying.
Syncing files to device AOSP on IA Emulator.
D/FlutterActivityAndFragmentDelegate( 5482): Attaching FlutterEngine to the Activity that owns this Fragment.
D/OpenGLRenderer( 5482): Skia GL Pipeline
D/FlutterView( 5482): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@244933f
W/le.test_projec( 5482): Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (light greylist, reflection)
W/le.test_projec( 5482): Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (light greylist, reflection)
W/le.test_projec( 5482): Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (light greylist, reflection)
W/le.test_projec( 5482): Accessing hidden method Landroid/util/LongArray;->get(I)J (light greylist, reflection)
D/FlutterActivityAndFragmentDelegate( 5482): Executing Dart entrypoint: main, and sending initial route: /
I/Choreographer( 5482): Skipped 302 frames! The application may be doing too much work on its main thread.
I/OpenGLRenderer( 5482): Initialized EGL, version 1.4
D/OpenGLRenderer( 5482): Swap behavior 1
D/HostConnection( 5482): HostConnection::get() New Host Connection established 0xe2b70150, tid 5863
D/HostConnection( 5482): HostConnection::get() New Host Connection established 0xe57a1140, tid 5503
D/HostConnection( 5482): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1
D/HostConnection( 5482): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1
W/OpenGLRenderer( 5482): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without.
D/OpenGLRenderer( 5482): Swap behavior 0
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation( 5482): eglCreateContext: 0xe57851e0: maj 3 min 1 rcv 4
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation( 5482): eglCreateContext: 0xe3d32a00: maj 3 min 1 rcv 4
D/EGL_emulation( 5482): eglMakeCurrent: 0xe3d32a00: ver 3 1 (tinfo 0xe3d7c670)
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
D/HostConnection( 5482): createUnique: call
D/HostConnection( 5482): HostConnection::get() New Host Connection established 0xe57a1190, tid 5503
E/eglCodecCommon( 5482): GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
D/HostConnection( 5482): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1
D/EGL_emulation( 5482): eglMakeCurrent: 0xe57851e0: ver 3 1 (tinfo 0xe57836f0)
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
I/Choreographer( 5482): Skipped 1683 frames! The application may be doing too much work on its main thread.
D/EGL_emulation( 5482): eglMakeCurrent: 0xe3d32a00: ver 3 1 (tinfo 0xe3d7c670)
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 1 2
I/OpenGLRenderer( 5482): Davey! duration=134875ms; Flags=1, IntendedVsync=2243599484209, Vsync=2271649483087, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2271653219400, AnimationStart=2271653292800, PerformTraversalsStart=2271653312800, DrawStart=2271659659500, SyncQueued=2293522279700, SyncStart=2294562086000, IssueDrawCommandsStart=2294562257900, SwapBuffers=2365554445600, FrameCompleted=2379515031400, DequeueBufferDuration=4473659000, QueueBufferDuration=1135000,
I/Choreographer( 5482): Skipped 2571 frames! The application may be doing too much work on its main thread.
I/OpenGLRenderer( 5482): Davey! duration=66801ms; Flags=0, IntendedVsync=2409835137997, Vsync=2452685136283, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2452697355600, AnimationStart=2452697499900, PerformTraversalsStart=2452701819700, DrawStart=2452709301600, SyncQueued=2452709346300, SyncStart=2452709472100, IssueDrawCommandsStart=2452709657600, SwapBuffers=2452710154400, FrameCompleted=2476637233900, DequeueBufferDuration=23705921000, QueueBufferDuration=7549000,
D/EGL_emulation( 5482): eglMakeCurrent: 0xe57851e0: ver 3 1 (tinfo 0xe57836f0)
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 1 0
I/Choreographer( 5482): Skipped 116 frames! The application may be doing too much work on its main thread.
Lost connection to device.
Syncing files to device AOSP on IA Emulator.
C:\AndroidStudioProjects\flutterapp\test_project>

@Vuyisile619 let’s keep conversation in your issue.

Читайте также:  Где мои устройства android

Could you provide your flutter doctor -v and flutter run —verbose ?

Источник

Error getting device API level. Original error: Error executing adbExec #12736

Comments

Amrkamel1 commented Jun 7, 2019 •

Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk’ exited with code 3221226356′; Stderr: »; Code: ‘3221226356’

error appears suddenly after latest update from android studio unable me to run any test on real devices or emulator

Environment

  • Appium version 1.13.0
  • Desktop win10
  • Node.js version: v10.16.0
  • Android Debug Bridge version 1.0.41
    Version 29.0.0-5611747
  • JDK 1.8.0_211
  • java-client 7.0
  • testng 6.14.3
  • selenium java 3.141.59
  • Real device and emulator/simulator

Details

If necessary, describe the problem you have been experiencing in more detail.

[Appium] Welcome to Appium v1.13.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] —> POST /wd/hub/session
[HTTP] <"desiredCapabilities":<"app":"C:\Users\amrka\AndroidStudioProjects\demo2\app\..\TestingApk\sfd.apk","appActivity":"com.sfdmobile.MainActivity","appPackage":"com.sarajevo.food.dictionary","clearSystemFiles":true,"platformVersion":"8.1.0","automationName":"uiautomator2","autoGrantPermissions":true,"platformName":"Android","deviceName":"emulator-5554","avd":"myphone">,»capabilities»:<"firstMatch":[<"appium:app":"C:\Users\amrka\AndroidStudioProjects\demo2\app\..\TestingApk\sfd.apk","appium:appActivity":"com.sfdmobile.MainActivity","appium:appPackage":"com.sarajevo.food.dictionary","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:avd":"myphone","appium:clearSystemFiles":true,"appium:deviceName":"emulator-5554","platformName":"android","appium:platformVersion":"8.1.0">]>>
[W3C] Calling AppiumDriver.createSession() with args: [<"app":"C:\Users\amrka\AndroidStudioProjects\demo2\app\..\TestingApk\sfd.apk","appActivity":"com.sfdmobile.MainActivity","appPackage":"com.sarajevo.food.dictionary","clearSystemFiles":true,"platformVersion":"8.1.0","automationName":"uiautomator2","autoGrantPermissions":true,"platformName":"Android","deviceName":"emulator-5554","avd":"myphone">,null,<"firstMatch":[<"appium:app":"C:\Users\amrka\AndroidStudioProjects\demo2\app\..\TestingApk\sfd.apk","appium:appActivity":"com.sfdmobile.MainActivity","appium:appPackage":"com.sarajevo.food.dictionary","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:avd":"myphone","appium:clearSystemFiles":true,"appium:deviceName":"emulator-5554","platformName":"android","appium:platformVersion":"8.1.0">]>]
[BaseDriver] Event ‘newSessionRequested’ logged at 1559923410881 (18:03:30 GMT+0200 (Central European Daylight Time))
[Appium] Appium v1.13.0 creating new AndroidUiautomator2Driver (v1.33.1) session
[Appium] Capabilities:
[Appium] platformName: android
[Appium] app: C:\Users\amrka\AndroidStudioProjects\demo2\app..\TestingApk\sfd.apk
[Appium] appActivity: com.sfdmobile.MainActivity
[Appium] appPackage: com.sarajevo.food.dictionary
[Appium] autoGrantPermissions: true
[Appium] automationName: uiautomator2
[Appium] avd: myphone
[Appium] clearSystemFiles: true
[Appium] deviceName: emulator-5554
[Appium] platformVersion: 8.1.0
[BaseDriver] W3C capabilities <"alwaysMatch":<"platformNa. and MJSONWP desired capabilities <"app":"C:\Users\amrka\A. were provided
[BaseDriver] Creating session with W3C capabilities: <"alwaysMatch":<"platformNa.
[BaseDriver] Session created with session id: fa75ac2f-2421-4e77-af55-04f8557d1e62
[BaseDriver] Using local app ‘C:\Users\amrka\AndroidStudioProjects\demo2\app..\TestingApk\sfd.apk’
[UiAutomator2] Checking whether app is actually present
[ADB] Using ‘adb.exe’ from ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe’
[ADB] Trying to find ‘myphone’ emulator
[ADB] Getting connected emulators
[ADB] Getting connected devices.
[ADB] 2 device(s) connected
[ADB] 1 emulator(s) connected
[ADB] Sending telnet command to device: avd name
[ADB] Getting running emulator port
[ADB] Socket connection to device created
[ADB] Socket connection to device ready
[ADB] Telnet command got response: myphone
[ADB] Found emulator ‘myphone’ on port 5554
[ADB] Setting device id to emulator-5554
[AndroidDriver] Not launching AVD because it is already running.
[AndroidDriver] Using device: emulator-5554
[ADB] Using ‘adb.exe’ from ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe’
[ADB] Setting device id to emulator-5554
[ADB] Running ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk’
[UiAutomator2] Deleting UiAutomator2 session
[ADB] Running ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.sarajevo.food.dictionary’
[UiAutomator2] Unable to force stop app: Error executing adbExec. Original error: ‘Command ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.sarajevo.food.dictionary’ exited with code 3221226356′; Stderr: »; Code: ‘3221226356’
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward —remove tcp:8200’
[UiAutomator2] Unable to remove port forward ‘Error executing adbExec. Original error: ‘Command ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward —remove tcp:8200′ exited with code 1’; Stderr: ‘adb.exe: error: listener ‘tcp:8200′ not found’; Code: ‘1»
[ADB] Running ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk’
[BaseDriver] Event ‘newSessionStarted’ logged at 1559923415105 (18:03:35 GMT+0200 (Central European Daylight Time))
[W3C] Encountered internal error running command: Error: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\amrka\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk’ exited with code 3221226356′; Stderr: »; Code: ‘3221226356’
[W3C] at ADB. (C:\Users\amrka\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:98:13)
[W3C] at Generator.throw ()
[W3C] at asyncGeneratorStep (C:\Users\amrka\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules@babel\runtime\helpers\asyncToGenerator.js:3:24)
[W3C] at _throw (C:\Users\amrka\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules@babel\runtime\helpers\asyncToGenerator.js:29:9)
[W3C] at run (C:\Users\amrka\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\core-js\modules\es6.promise.js:75:22)
[W3C] at C:\Users\amrka\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\core-js\modules\es6.promise.js:92:30
[W3C] at flush (C:\Users\amrka\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\core-js\modules_microtask.js:18:9)
[W3C] at process._tickCallback (internal/process/next_tick.js:61:11)
[W3C] at Object.showMessageBox (C:\Users\amrka\AppData\Local\Programs\Appium\resources\electron.asar\browser\api\dialog.js:278:20)
[W3C] at showMessageBox (C:\Users\amrka\AppData\Local\Programs\Appium\resources\app\app\main\menus.js:197:14)
[W3C] at MenuItem.click (C:\Users\amrka\AppData\Local\Programs\Appium\resources\electron.asar\browser\api\menu-item.js:56:9)
[W3C] at Function.executeCommand (C:\Users\amrka\AppData\Local\Programs\Appium\resources\electron.asar\browser\api\menu.js:31:13)
[HTTP]

Читайте также:  Audi q5 8r android прошивка

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью