2

I've tried to create a new project on android and ran it without any problem in my emulator.

I added the google-play-service library in my eclipse workbench and linked it to my project. Then I tried to run it again and my eclipse started loading... Then the progress bar stopped to move, then I saw eclipse took 80% of my CPU capacity! So I shut it down and tried again, same thing happened.

For your info I imported the google-play-service library from

sdk\extras\google\google_play_services\libproject\google-play-services_lib

and I still have not touched the example code in the MainActivity.java

ivan.mylyanyk
  • 2,051
  • 4
  • 30
  • 37
gotgot1995
  • 183
  • 2
  • 3
  • 12

1 Answers1

2

I solved this issue on my own PC (Windows) by allocating more memory for Eclipse. Add this to your properties if you're on Windows (you can give the same command line arguments in linux).

Eclipse properties

Taken from this SO Post

Community
  • 1
  • 1
RyPope
  • 2,645
  • 27
  • 51
  • Oh that's it ! I finally got an error. Eclipse stopped trying to compile and returned an error: "Unable to execute dex: GC overhead limit exceeded Unhandled event loop exception workbench auto-save job GC overhead limit exceeded" – gotgot1995 Sep 18 '14 at 12:40
  • Yup, that means you need to increase allocated your eclipse memory. Glad I could help. Make sure your shortcut to eclipse is executing those command line properties properly. – RyPope Sep 18 '14 at 12:47