java.lang.NoClassDefFoundError for any google-play-services feature

前端 未结 2 1392
甜味超标
甜味超标 2021-01-23 14:43

I\'m using the last version of Eclipse, ADT and the newest Android SDK. If I\'m trying to use something in a simple HelloWorld Android project Google Play feature, for instance,

相关标签:
2条回答
  • 2021-01-23 14:54

    You probably need to add a reference to the project in Project Settings->Android->Library.

    Look at the "Referencing a library section" here. Add your project reference there as well and you should be alright.

    0 讨论(0)
  • 2021-01-23 15:11

    I wasted a lot of time of findout the solution. The core of bug is Android SDK updating went wrong, old version of Eclipse, not enought memory for Eclipse Java Machine (more detailed about memory bug here).

    Even I've tryed to update build tools, API, etc. it didn't work. But I just downloaded new SDK and fully reinstalled and this helped. Do not forget to install new Eclipse and ADT. Do not forget about memory increasing in eclipse.ini file.

    0 讨论(0)
提交回复
热议问题