Emulator device didn't reboot within 90 seconds while executing the script

Hi All,
I installed .apk file in android emulator 5.0.1 version. it is working fine manually(able to open performed some operation also). come to automation i try to execute below code, getting error as “device didn’t reboot within 90 seconds.”
public class LoginApp {

	public void setUp() throws MalformedURLException, Throwable
		File appDir = new File("D:\\Appium\\New_APK_Files");	
		File app = new File(appDir, "Insurence.apk");
		//setup desired capabilities and pass the android app-activity and app-package to appium
		DesiredCapabilities capabilities=new DesiredCapabilities();
		capabilities.setCapability("app-Wait-Activity", ".login");
	  driver=new RemoteWebDriver(new URL(""), capabilities);

	public void testcal() throws Exception
	{driver.findElement(By.id("com.geetha.app:id/img")).click(); 		driver.findElement(By.id("com.geetha.app:id/manager")).click();
public void teardown()

Getting Below error message on Appium server console:

info: [debug] executing cmd: D:\Appium\Android_SDK\Android\platform-tools\adb.exe shell “getprop sys.boot_completed”
info: [debug] still waiting for reboot.
info: [debug] executing cmd: D:\Appium\Android_SDK\Android\platform-tools\adb.exe shell “getprop sys.boot_completed”
info: [debug] Sent shutdown command, waiting for UiAutomator to stop…
warn: UiAutomator did not shut down fast enough, calling it gone
error: Failed to start an Appium session, err was: Error: device didn’t reboot within 90 seconds
info: [debug] Cleaning up appium session
info: [debug] Error: device didn’t reboot within 90 seconds
at [object Object].fn (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1683:30)
at Object.async.until (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\async\lib\async.js:707:13)
at [object Object]._onTimeout (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\async\lib\async.js:711:23)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: device didn’t reboot within 90 seconds)”,“origValue”:“device didn’t reboot within 90 seconds”},“sessionId”:null}
info: ← POST /wd/hub/session 500 139714.488 ms - 198

Please help me 


I am having the same issue on a device running android 5.0. Can anyone help?

@alangithubtrader @nagendaredi

I have filed an issue https://github.com/appium/appium/issues/5605

Did you guys find any workaround for this annoying issue , for time being I had to either restart device manually or plug out and plug back in the device.


1 Like

It works well for me after I clicked on Applium --> Reset Preferences.