I've used the Maps APIs many times before and not had this problem, but I've clearly done something wrong with this IntelliJ project. Under Settings->SDKs I have specified the platform 7 Google API in the classpath - it still fails to build saying the Maps APIs are not there. I have also tried added a separate reference to the classpath to the Google APIs .jar, but still the same problem.
How do I fix my IntelliJ IDE project so it correctly builds against the Google APIs?
It's been a long day, I am probably missing something obvious.
So to get the Google (Maps etc) APIs working in IntelliJ:
Under my version of Idea, the controls are a bit different:
Project settings -- Modules -- (ModuleName) -- triangle to unfold the tree -- Android; and on the right you see "Android platform:" and a selection control. There is no "Android 2.1-update1 Google APIs" in that control, but you press the "New" button and... select an existing directory with downloaded stuff, e.g. /android-sdk-mac_x86/platforms/android-9
I still don't understand why it reads "New", but it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With