google map - runtimeexception - error inflating class fragment

时光怂恿深爱的人放手 提交于 2019-12-01 11:06:17

I had a similar error when trying the Map API v2. However, I don't know whether it will help you.

My problem was that the google-play-services_lib had to be included as a library. In Eclipse, you can do this as follows:

  1. Use the Android SDK Manager to download the library.
  2. Create a new "Android Project from existing code" where you point to google-play-services_lib in the folder you used to install the SDK.
  3. Under "Project -> Properties -> Android" flag this project as "Is library".
  4. In your project, also open "Project -> Properties -> Android" and click on "Add" in the library section. Select the google-play-services_lib.

At least that worked for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!