appium: settings_apk-debug.apk: No such file or directory

The 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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16

Most upvoted comments

Sorry I am kind of new here, but: When you say "I installed whatever-apk manually. Where do you install it from?? Where do I look for it?

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