NoClassDefFoundError的时候GoogleAnalyticsTracker.getInstance()时候、NoClassDefFoundError、getInstance、Googl

2023-09-11 12:08:56 作者:元瑶

我特林使用com.google.android.apps.analytics.GoogleAnalyticsTracker 但得到的NoClassDefFoundError当

I'm tring to use com.google.android.apps.analytics.GoogleAnalyticsTracker but got NoClassDefFoundError when

GoogleAnalyticsTracker.getInstance();

我敢肯定,libGoogleAnalytics.jar包含在构建路径和code的成功构建。

I'm sure that libGoogleAnalytics.jar is included in the Build Path and the code was successfully built.

这code完美工作之前,我怀疑后,我更新了ADT到最新的,但出现错误毫无头绪。

that code worked perfectly before that I suspect that the error occur after I updated the ADT to the latest but no clue.

可能有人给这个有什么建议?

Could anybody give any suggestions on this?

推荐答案

其实,这是你必须把你的jar文件到libs文件夹,以克服这种异常,我们正面临着ADT 17问题

Actually this is the problem we are facing with ADT 17 you have to put your jar file into libs folder in order to overcome this exception

所以右击你的项目 - >创建一个名称的文件夹库

so right click on your project -->create a folder with name libs

和按照此步骤中

 right click (on libs folder) -->import-->File System-->browse to select your jar file and hit finish and run you project.

之后

 right click on the project --> Built Path-->java built path-->add jars select your jar file from your libs folder