0

I have a problem using google-play-services_lib on Android.

I followed this tutorial. Getting the Google Maps Android API v2 to import it on eclipse, but when I add in my project reference Google Play services library and I try to run it on my Nexus 5, Eclipse starts an infinite launching and I must kill it.

I update all in SDK manager. What could be the problem?

Brian Deragon
  • 2,929
  • 24
  • 44
Danilo
  • 11
  • 1
  • I think you may try use Android Studio, it's easy.http://developer.android.com/google/play-services/setup.html#Setup – bjiang Dec 18 '14 at 17:10
  • Check this: http://stackoverflow.com/questions/5943712/conversion-to-dalvik-format-failed-unable-to-execute-dex-java-heap-space – Ollie Strevel Dec 18 '14 at 17:20
  • @bjiang I followed that guide to configure Play Services with Eclipse + ADT. – Danilo Dec 18 '14 at 17:45

1 Answers1

0

This mostly happens when their is a lot of XML (layout) on the activity and the memory is not sufficient to hold the elements all together. In that case the Eclipse hangs and if you run it again all the launching gets queued up, the ultimate solution is to kill all the launch manually to get it restarted. Although Eclipse is lightweighted it is poor in memory management for android. Using Android Studio is a better solution.

Is their anything you are getting in your logcat?

AniV
  • 3,997
  • 1
  • 12
  • 17