Android Question Need help with my attempt at Google Maps "hello world".

Discussion in 'Android Questions' started by Emmy, May 16, 2015.

  1. Emmy

    Emmy Member Licensed User

    I am trying this example, i have followed all the steps successfully, except that when i am compiling the code i get the error:

    Parsing code. Error
    Error parsing program.
    Error description: Unknown type: mapfragment
    Are you missing a library reference?
    Occurred on line: 10
    Dim mFragment As MapFragment

    I am using b4a 4.0, I cant find how to fix this error. help? :)
  2. eurojam

    eurojam Well-Known Member Licensed User

    Hi Emmy,
    that sounds like you didn't activate the GoogleMaps Library in the referenced Library window on the right side of the IDE (see screenshot attached)
    Screenshot 2015-05-16 07.19.35.png

  3. Emmy

    Emmy Member Licensed User

    Hello Stefan, thanks, I dont have that reference on the left of my IDE, i already copied google-play-services.jar to my library folder but it doesnt display there.

    What else can i try?
  4. eurojam

    eurojam Well-Known Member Licensed User

  5. Emmy

    Emmy Member Licensed User

    Thanks guys, sorry if my questions are too known, i havent had much time to test the features.
    However i get the white map. I have checked the SHA1, correct, Package name, correct, API gey, generated correctly, pasted correctly in the manifest editor... checked the Google maps in the libs... maybe i copied the wrong google apy jar?

    Maybe my error is in step 4: - Under "Simple API Access" you should select "Key for Android apps (with certificates".

    I cannot follow this step because i dont see the option, My version is in spanish and i dont know what it translates exactly to or where is it or where should i look for it.
    Last edited: May 16, 2015
  6. Emmy

    Emmy Member Licensed User

    Disregard, it started working when i created a new client ID. I believe the tutorial will need to be updated. :)
    Thanks for the replies! I will play with it now. :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice