Google Maps works fine on Android but I still get an error “Could not find class 'maps.i.k', referenced from method maps.z.ag.a”

前端 未结 6 1264
Happy的楠姐
Happy的楠姐 2020-12-10 12:14

I got Google Maps Android API v2 to work perfectly on my Android Application by downloading the library, adding it to workspace, then referencing it as a library.

Bu

6条回答
  •  感情败类
    2020-12-10 13:00

    Remove this code:

     
    

    first of all it's not required for Google Map API V2.

    Next, try to move this code to be right before the closing application tag:

     
    

    like that:

     
    
    

    Finally check that you have turned on the right API service in Google API Console:

    enter image description here

    You can get more information on both of this topics from this two blog posts I wrote:

    Google Maps API V2

    and:

    Google Maps API V2 key

    UPDATE:

    For the licensing check this link:

    http://android-er.blogspot.co.il/2012/12/include-open-source-software-license.html

    basically in some place in your application whether it an activity or a dialog you have to run this:

    String LicenseInfo = GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(getApplicationContext());
    

    and present the result in some form of fashion.

提交回复
热议问题