Getting NoSuchMethodError exception on com.android.prefs.AndroidLocation.getAvdFolder() when trying to run “ionic cordova run --emulator”

穿精又带淫゛_ 提交于 2019-12-01 21:23:43

As it turns out, I just used Android Studio to update the SDK tools. Go to Preferences -> Appearance & Behavior -> System Settings -> Android SDK, then click the SDK Tools tab. I updated the following packages:

  • Android SDK Build-Tools
  • Android Emulator
  • Android SDK Platform-Tools
  • Android SDK Tools
  • Intel x86 Emulator Accelerator
  • Support Repository->Android Support Repository
  • Support Repository->Google Repository

I'm honestly not sure which package solved my problem but I imagine updating all of them at the same time was a good idea. Hope this helps someone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!