settings_apk-debug.apk: No such file or directory
See original GitHub issueThe problem
I am a newbie in the Appium, and I get such error while trying to start a session through the Appium Inspector: Failed to create a session. An unknown server-side error occurred while processing the command.
Original error: Error executing adbExec.
Original error: 'Command 'C:\\Users\\xukin\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 install -g C:\\Windows\\system32\\node_modules\\appium-uiautomator2-driver\\node_modules\\io.appium.settings\\apks\\settings_apk-debug.apk' exited with code 1';
Command output:
adb: failed to stat C:\Windows\system32\node_modules\appium-uiautomator2-driver\node_modules\io.appium.settings\apks\settings_apk-debug.apk: No such file or directory
Capabilities:
{
"platformName": "Android",
"appium:platformVersion": "12",
"appium:deviceName": "Pixel XL",
"appium:app": "C:/Users/xukin/OneDrive/Документы/app-release.apk",
"appium:automationName": "UIAutomator2",
"appium:udid": "emulator-5554"
}
I looked at this path, and the file was there(file). Does someone know what the problem is?
Environment
- Appium version: 2.0.0-beta.44
- OS: Windows 11 Pro
- Node.js: 16.13.1
- Emulator:
Device name: Pixel XL; Platform name: Android; Platform version: 12; Automation name: UIAutomator2; API version: 31
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
adb: failed to stat app/build/outputs/apk/app-debug.apk: No ...
apk : No such file or directory - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >XA0137: The 'run-as' command failed with 'run-as: couldn't stat ...
demo: No such file or directory '. Hi all,. My app not installing in release mode, Even I tried generating apk and installing...
Read more >Known issues with Android Studio and Android Gradle Plugin
This page tracks known issues with Android Studio Dolphin | 2021.3.1 and Android Gradle plugin 7.3.1. If you experience an issue not already...
Read more >Appium APK deployment fails: no such file or directory - Support
However, I'm now trying to test this using Appium but failing to even get the APK to deploy. I can see it uninstalls...
Read more >[Solved]-adb: failed to stat app/build/outputs/apk/app-debug.apk
Coding example for the question adb: failed to stat app/build/outputs/apk/app-debug.apk: No such file or directory-React Native.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This file is located in C:\Windows\system32\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\
Your error log should have recorded this path
You should find this file (C:\Windows\system32\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\) and put it in another folder with a short path. This helped me. It is the same solution that was in the first step. I really want to help but I didn’t do anything else ) I just took the file put it in the folder with a short path and run a command that was in the error log on cmd ADB.