google map - runtimeexception - error inflating class fragment

后端 未结 1 504
迷失自我
迷失自我 2021-01-15 02:45

I just try to view a map on the display, but it does not work. I get an runtimeexception:

01-17 19:16:47.066: E/AndroidRuntime(6605): java.lang.RuntimeExcept         


        
相关标签:
1条回答
  • 2021-01-15 02:59

    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.

    0 讨论(0)
提交回复
热议问题