把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

posted on 2015-03-28 23:51  饭前码字  阅读(1166)  评论(0编辑  收藏  举报