Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I just imported an App that uses Google Maps API, must add google apis 2.3.3

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just imported an App that uses Google Maps API... but in Project sub folders shows only "Android 2.3.3"... is it for this that shows error for every google map import or statement in java files only? must add google apis 2.3.3 of jar libraries sub folder, under the sub folder "Android 2.3.3", if yes how?

I got Map key from debug cert and only this is the problem now...(I added key to strings.xml)
 
Peter Miklosko
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use maven-android-sdk-deployer (https://github.com/mosabua/maven-android-sdk-deployer/) to get necessary dependencies that aren't published along android dependencies
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can not start a new android project... and choose Google API 2.3.3 rather Android 2.3.3? after copy files to this...well?

or import the google api 2.3.3 libraries to existing without create new, how?

google api 2.3.3 includes all of Android 2.3.3 plus google apis???
 
Peter Miklosko
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No your project needs both libraries Android and maps.

Did you had look on the github link that I provided? did you actually use it?
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
google api 2.3.3 includes all of Android 2.3.3 plus google api itself OR both required???

why these libraries do not imported auto from Eclipse like did Android 2.3.3 libraries?
 
Peter Miklosko
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "Google API 2.3.3" there is Android 2.3.3 and Google Maps. These are two libraries. You need Android 2.3.3 for your project general setup and then you need Google Maps if you wish to do anything with maps.

Why they not imported into Eclipse you have to ask Google people. Above linked deployer is simple way to get hold of other Google Android based libraries that are not provided through Android SDK.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic