0

I was trying to get an environment setup today and after getting the SDK, ADT, Eclipse etc set up I imported the project to the new work space. After install developer tools version 22.0 the google play services lib in the project "can't be resolved". None of the map classes can be resolved - Marker, Camera Position, LatLng, Google Map etc.

In a different environment I was running version 21.1 of the Developer Tools. The project would run fine there until I updated the Developer Tools.

I was curious if anyone else has experienced this and if there is a workaround?

Vinny K
  • 194
  • 15

1 Answers1

2

Dup of: After upgrading to Android Developer Tools version 22, compiling fails

Check this post: https://plus.google.com/photos/117122118961369445953/albums/5878509263473846433/5878509268379848162

Please also check on SDK Manager if you have the new "Android SDK Build-tools" installed!

What I have done:

  • Eclipse -> Java Build Path -> Order and Export = checked "Android Private Library" and "Android Dependencies"
  • SDK Manager = SDK Build-tools installed
  • SDK Manager = Android Plataform-tools v17 installed
Community
  • 1
  • 1
thiagolr
  • 6,909
  • 6
  • 44
  • 64
  • I added the private libraries and it's still telling me none of the google API's objects can be found. It's not the NoClassDefFoundError referenced in the Google Plus post, it's that the Google API classes cannot be resolved. Thoughts.? – Vinny K May 18 '13 at 15:33
  • I updated my answer with one more thing to check! Please try that too! – thiagolr May 19 '13 at 22:40
  • Yup, I've got everything installed from the SDK Manager and I checked the Private Library on Order and Export. I have three libraries I'm importing - the jfeinstein sliding menu, a SAX-RSS-Reader and the google-play-services_lib. The Menu and SaxREader work just fine but none of the google map classes can be resolved to a type. I've tried it by building a new project etc and nothing seems to work. – Vinny K May 20 '13 at 14:44
  • Please check if the "google-play-services_lib" is properly set as an Android Library Project and if you are properly referencing it as a library project. – thiagolr May 20 '13 at 16:12
  • Yup. Both of those seem to be working correctly. The project was building fine Friday morning and then I updated the ADT/SDK stuff and it broke. – Vinny K May 20 '13 at 17:02
  • 2
    Ok well, I went through and took out the imports I had for the GoogleMaps stuff and did a "fix project setup" in eclipse. It brought in google-play-services_lib jar and things seemed to be fixed. – Vinny K May 20 '13 at 18:14