Hi ,
I am getting the same error even after setting everything, Please can you check once ?
Here is my nano ~/.profile
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH
export ANDROID_HOME=/Users/krishnakiran/Library/Android/sdk
export PATH=$ANDROID_HOME:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATH
export PATH=$ANDROID_HOME/build-tools/29.0.0:$PATH
launchctl setenv ANDROID_HOME /Users/krishnakiran/Library/Android/sdk
Heres the which appt on terminal
/Users/krishnakiran/Library/Android/sdk/build-tools/29.0.0/aapt
Hereâs the error message when i run on eclipse
e[35m[Appium]e[39m Welcome to Appium v1.13.0
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m address: 127.0.0.1
e[35m[Appium]e[39m fullReset: true
e[35m[Appium]e[39m Deprecated server args:
e[35m[Appium]e[39m e[31mâfull-resete[39m => --default-capabilities â{âfullResetâ:true}â
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m fullReset: true
e[35m[Appium]e[39m Appium REST http interface listener started on 127.0.0.1:4723
Appium server started.
08 Jul 2019 11:05:07 INFO logger - Appium server started successfully
08 Jul 2019 11:05:07 INFO logger - --------------------------------------
e[35m[HTTP]e[39m e[37mâ>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[90m{âdesiredCapabilitiesâ:{âappâ:"/Users/krishnakiran/Desktop/MobileAutomationFramework-master/app-poquat-release.apk",âappPackageâ:âcom.poqstudio.app.platform.poquatâ,ânoResetâ:false,âautomationNameâ:âUiAutomator2â,âplatformNameâ:âAndroidâ,âdeviceNameâ:âAndroid Deviceâ},âcapabilitiesâ:{âalwaysMatchâ:{âappium:appâ:"/Users/krishnakiran/Desktop/MobileAutomationFramework-master/app-poquat-release.apk",âappium:appPackageâ:âcom.poqstudio.app.platform.poquatâ,âappium:automationNameâ:âUiAutomator2â,âappium:deviceNameâ:âAndroid Deviceâ,âappium:noResetâ:false,âplatformNameâ:âandroidâ},âfirstMatchâ:[{}]}}e[39m
[debug] e[35m[W3C]e[39m Calling AppiumDriver.createSession() with args: [{âappâ:"/Users/krishnakiran/Desktop/MobileAutomationFramework-master/app-poquat-release.apk",âappPackageâ:âcom.poqstudio.app.platform.poquatâ,ânoResetâ:false,âautomationNameâ:âUiAutomator2â,âplatformNameâ:âAndroidâ,âdeviceNameâ:âAndroid Deviceâ},null,{âalwaysMatchâ:{âappium:appâ:"/Users/krishnakiran/Desktop/MobileAutomationFramework-master/app-poquat-release.apk",âappium:appPackageâ:âcom.poqstudio.app.platform.poquatâ,âappium:automationNameâ:âUiAutomator2â,âappium:deviceNameâ:âAndroid Deviceâ,âappium:noResetâ:false,âplatformNameâ:âandroidâ},âfirstMatchâ:[{}]}]
[debug] e[35m[BaseDriver]e[39m Event ânewSessionRequestedâ logged at 1562580308565 (11:05:08 GMT+0100 (British Summer Time))
e[35m[BaseDriver]e[39m The capabilities [âfullResetâ] are not standard capabilities and should have an extension prefix
e[35m[Appium]e[39m Appium v1.13.0 creating new AndroidUiautomator2Driver (v1.33.1) session
e[35m[Appium]e[39m Capabilities:
e[35m[Appium]e[39m platformName: android
e[35m[Appium]e[39m app: /Users/krishnakiran/Desktop/MobileAutomationFramework-master/app-poquat-release.apk
e[35m[Appium]e[39m appPackage: com.poqstudio.app.platform.poquat
e[35m[Appium]e[39m automationName: UiAutomator2
e[35m[Appium]e[39m deviceName: Android Device
e[35m[Appium]e[39m noReset: false
e[35m[Appium]e[39m fullReset: true
[debug] e[35m[BaseDriver]e[39m W3C capabilities {âalwaysMatchâ:{âplatformNa⊠and MJSONWP desired capabilities {âfullResetâ:true,âappâ:â/U⊠were provided
[debug] e[35m[BaseDriver]e[39m Creating session with W3C capabilities: {âalwaysMatchâ:{"platformNaâŠ
e[35m[BaseDriver]e[39m Session created with session id: 68900c24-5369-48a9-b686-42f36f6e2e70
e[35m[BaseDriver]e[39m Using local app â/Users/krishnakiran/Desktop/MobileAutomationFramework-master/app-poquat-release.apkâ
[debug] e[35m[UiAutomator2]e[39m Checking whether app is actually present
e[35m[ADB]e[39m The ANDROID_HOME environment variable is not set to the Android SDK root directory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking along PATH for adb.
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 session
[debug] e[35m[BaseDriver]e[39m Event ânewSessionStartedâ logged at 1562580308745 (11:05:08 GMT+0100 (British Summer Time))
[debug] e[35m[W3C]e[39m Encountered internal error running command: Error: Could not find âadbâ in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
[debug] e[35m[W3C]e[39m at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:135:11)
[debug] e[35m[W3C]e[39m at Generator.throw ()
[debug] e[35m[W3C]e[39m at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[debug] e[35m[W3C]e[39m at _throw (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)
e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m274 ms - 803e[39m
e[35m[HTTP]e[39m e[90me[39m
It is impossible to create a new session because âcreateSessionâ which takes HttpClient, InputStream and long was not found or it is not accessible
Build info: version: â3.12.0â, revision: â7c6e0b3â, time: â2018-05-08T14:04:26.12Zâ
System info: host: âPOQ0026.localâ, ip: âfe80:0:0:0:10de:7d73:bad7:e4fe%en0â, os.name: âMac OS Xâ, os.arch: âx86_64â, os.version: â10.14.4â, java.version: â1.8.0_201â
Driver info: driver.version: AndroidDriver