After upgrading to 1.6.4 I am getting an error when i run driver.resetApp();
[MJSONWP] Encountered internal error running command: TypeError: this.grantPermissions is not a function
at AndroidUiautomator2Driver.callee$0$0$ (…/…/…/lib/commands/general.js:202:14)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Appium 1.6.4
Google Pixel XL - 7.1.1
uiautomator2