NoClassDefFoundError的时候GoogleAnalyticsTracker.getInstance() [英] NoClassDefFoundError when GoogleAnalyticsTracker.getInstance()

查看:293
本文介绍了NoClassDefFoundError的时候GoogleAnalyticsTracker.getInstance()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我特林使用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

这篇关于NoClassDefFoundError的时候GoogleAnalyticsTracker.getInstance()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆