在使用百度地图定位时,androidstudio报错
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.mapapi.utils.b) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
解决方法如下:
安卓的方法数量不够了,只能6w个方法。
在项目build.gradle这里添加这句。
defaultConfig {
multiDexEnabled true
}