#百度地图# android.view.InflateException: Binary XML file line Error inflating class com.baidu.mapapi.ma

#百度地图# android.view.InflateException: Binary XML file line Error inflating class com.baidu.mapapi.map.MapView

原文:https://github.com/vincent4j/android-training/issues/54


原因

在 onCreate() 中,需先

mBMapManager = new BMapManager(getApplication());
mBMapManager.init(Config.API_KEY, null);

setContentView(R.layout.activity_main);
Vincent 4J vincent4j closed this  on 25 Sep 2013
qianjin
qianjin commented  25 days ago

现在是:SDKInitializer.initialize(getApplicationContext());



你可能感兴趣的:(JAVA,Android,baidu,map,api)