UIAutomator 1 or 2 ? - what is Android 7+ hybrid app testing strategy

Agree. StaleObjectException is a bug forcing duplicate code to avoid it. I’m interesting too when this nasty bug will be fixed in which version of Appium? For now uiautomator2 is not usable.