# Can not change context on android emulator

**URL:** <https://discuss.appium.io/t/can-not-change-context-on-android-emulator/22816>\
**Category:** Support\
**Created:** [July 18, 2018, 7:16am UTC](https://discuss.appium.io/t/can-not-change-context-on-android-emulator/22816 "2018-07-18T07:16:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex4](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@Alex4](https://discuss.appium.io/u/Alex4)\
**Post date:** [July 18, 2018, 7:16am UTC](https://discuss.appium.io/t/can-not-change-context-on-android-emulator/22816/1 "2018-07-18T07:16:53Z")

</div>

**appium version: 1.8.1**  
**node version: 6.1.0**  
**OS: Linux 4.15.0-24-generic x86\_64**  
**Virtualization: KVM (version 12) is installed and usable**.  
**chromedriver depends on webview version**

**Emulator commands:**

> avdmanager create avd -n $AVD\_NAME -k “system-images;android-%API\_LEVEL%;google\_apis;x86” -d “Nexus 9” --force

> nohup $ANDROID\_HOME/tools/emulator -avd $AVD\_NAME -port $EMULATOR\_PORT -use-system-libs -no-window -memory 1024 -no-boot-anim -partition-size 1024 -wipe-data -writable-system -noaudio -nocache -no-snapshot\< /dev/null \> /dev/null 2\>&1 &

> echo ‘vm.heapSize=256’ \>\> $CONFIG\_FILE\_PATH/config.ini

**config.ini:**

> PlayStore.enabled=false  
> abi.type=x86  
> avd.ini.encoding=UTF-8  
> hw.accelerometer=yes  
> hw.audioInput=yes  
> hw.battery=yes  
> hw.cpu.arch=x86  
> hw.dPad=no  
> hw.device.hash2=MD5:939e2e20a04a4c645e5130616c6ff5b5  
> hw.device.manufacturer=Google  
> hw.device.name=Nexus 9  
> hw.gps=yes  
> hw.lcd.density=320  
> hw.lcd.height=1536  
> hw.lcd.width=2048  
> hw.mainKeys=no  
> hw.sdCard=yes  
> hw.sensors.orientation=yes  
> hw.sensors.proximity=no  
> hw.trackBall=no  
> image.sysdir.1=system-images/android-25/google\_apis/x86/  
> tag.display=Google APIs  
> tag.id=google\_apis  
> vm.heapSize=256

**Appium logs:**  
[appium\_log.txt](https://discuss.appium.io/uploads/default/original/2X/9/976281d9abb465016318a5fa7b3379053732f73d.txt) (712.1 KB)

**Logcat:**  
[logcat\_emulator\_log.txt](https://discuss.appium.io/uploads/default/original/2X/0/0a652821f034f579475e941abee75f5b78687424.txt) (704.9 KB)

---

<div class="post-metadata">

**Author:** ![Smitty](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@Smitty](https://discuss.appium.io/u/Smitty)\
**Post date:** [July 18, 2018, 4:19pm UTC](https://discuss.appium.io/t/can-not-change-context-on-android-emulator/22816/2 "2018-07-18T16:19:09Z")

</div>

Looking at your Appium log, I think the version of Chromedriver you are using is not matched to the version of Chrome on your test device:

2018-07-18 07:08:51:146 - info: [debug] [Chromedriver] Changed state to ‘stopped’  
2018-07-18 07:08:51:146 - error: [Chromedriver] Error: Failed to start Chromedriver session: An error occurred (Original error: chrome not reachable  
2018-07-18 07:08:51:146 - error: [Chromedriver] (Driver info: chromedriver=2.28.455506 (18f6627e265f442aeec9b6661a49fe819aeeea1f),platapplication=Linux 4.15.0-24-generic x86\_64))

“chrome not reachable” is the message I get when the versions are mismatched and chromedriver 2.28 is pretty old at this point so I would imagine that your device’s Chrome browser is updated but the driver is not… Fire up Chrome on your Android to see what version you have and the go here to get the appropriate chromedriver:

> **[Downloads - ChromeDriver - WebDriver for Chrome](http://chromedriver.chromium.org/downloads)**
>
> WebDriver for Chrome

There is a folder for the updated chromedriver in Appium’s node\_modules folder.

Good Luck!
