把BaiduLBS_Android.jar和armeabi都放在工程的lib下就解决了,还没搞懂根本原因是啥,等后面明白了再更新。
SDKInitializer.initialize(getApplication());参数别用错了;而且这句话一定写在activity的oncreate里
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SDKInitializer.initialize(getApplication());
setContentView(R.layout.activity_main);
}
参考:http://blog.csdn.net/crazy1235/article/details/42614603
http://bbs.csdn.net/topics/390915993
时间: 2024-10-10 11:29:51