In IntelliJ IDEA (updated for IntelliJ 12):
- Create a file
~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/src/dummy.java
containingclass dummy {}
. - File->Import Module->
~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib
- Create Module from Existing Sources
- Next->Next->Next->Next->Finish
- File->Project Structure->Modules->YourApp
- +->Module Dependency->Google-play-services_lib (The + button is in the top right corner of the dialog.)
- +->Jars or directories->
~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar
- Use the up/down arrows to move
<Module source>
to the bottom of the list.