2

So, I installed everything, linked the project folder and my app crashes when I try to check the services.

Any hoop I forgot to jump on this stupidly over-complicated system just to display a simple map with some markers on my app?

All I get is "07-06 20:01:43.132: E/AndroidRuntime(1348): Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.common.GooglePlayServicesUtil", even if I try to execute it inside a try-catch, it will still crash the app.

Stephen Lynx
  • 1,077
  • 2
  • 14
  • 29
  • see if this helps: http://stackoverflow.com/questions/13691028/noclassdeffounderror-at-google-play-services-v2-library – Ryan S Jul 06 '13 at 20:04
  • No it doesnt, see the image, all that stuff is set. – Stephen Lynx Jul 06 '13 at 20:05
  • Have you tried to clean the project and rebuild? – peshkira Jul 06 '13 at 20:10
  • please add all the relevant code for how you are checking whether google play services is available – tony m Jul 06 '13 at 20:14
  • tony, its just that on the image. A button call the seeMap method and I check it. The button is working, because it prints anything before the isgoogleplayservicesavailable. peshkira, just did that, still crashing. – Stephen Lynx Jul 06 '13 at 20:18

2 Answers2

3

I've seen an app crash the same way before, but it only did because the google-play-services folder was added to the project in the Properties - Java Build Path section instead of including it as an android library in Properties - Android section.

Analizer
  • 1,594
  • 16
  • 30
0

Finnaly made this P.O.S work. Instead of doing all dumb crap googles tells you, just add a variable that points to their google-play-services.jar. But I think doing things simple is too mainstream for those hipsters.

Stephen Lynx
  • 1,077
  • 2
  • 14
  • 29