unity 编译APK失败, 事故
问题一
Exception in thread "main" java.lang.NoSuchMethodError: com.android.prefs.AndroidLocation.getAvdFolder()Ljava/lang/String
解决办法:
升级:SDK目录下
- 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
解决问题一(亲测)
问题二
java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
解决办法:
将JDK降至JDK8版本即可解决(亲测)