Android的 - 无法解析超 [英] Android - Unable to resolve superclass

查看:123
本文介绍了Android的 - 无法解析超的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经挖了出来,我是工作在几年前的老Android项目,并加载到一个新的Eclipse安装(最新的ADT等)。

I have dug out an old android project that I was working on a few years ago and loaded it into a new eclipse install (latest ADT etc).

该项目的所有编译OK(一些小的调整后),以及应用程序启动正常,但是,当我preSS一个按钮,启动了主要活动我碰到下面的堆栈跟踪:

The project all compiles ok (after some minor tweaking), and the app starts fine, however, when i press a button to start the main activity i get the following stack trace:

FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.tmm.android.activities.GameActivity
    at com.tmm.android.activities.StartActivity.onClick(StartActivity.java:53)
    at android.view.View.performClick(View.java:2408)

现在的阶级问题(GameActivity)是我班的一个是在应用程序,所以我知道那不是问题 - 但我注意到就在logcat的顶部的警告:

Now the class in question (GameActivity) is one of my classes that is in the app, so I know thats not the problem - but I noticed a warning right at the top of the logcat:

Unable to resolve superclass of Lcom/tmm/android/activities/GameActivity; (33)
Link of class 'Lcom/tmm/android/activities/GameActivity;' failed

我班GameActivity扩展了另一个类,它是一个,我已经包含在项目(包括其在库目录下,并将其添加到项目构建路径在Eclipse)第三方jar的一部分。

My class GameActivity extends another class that is part of a third-party jar that i have included in the project (included it in the 'libs' directory, and added it to the project build path in eclipse).

任何人都可以告诉我可能做错了,或者说,在ADT /等等,我可能需要采取的帐户已改变任何东西(它工作正常,当我最后一次有它在Eclipse)

Can anyone advise what I might have done wrong, or anything that has changed in the ADT/etc that I might need to take account of (it was working fine when i last had it in Eclipse)

干杯

推荐答案

好吧,是在最后一个简单的问题。

Ok, was a simple problem in the end..

已经添加的第三方库的构建路径,wasnt默认导出罐的出口标签(日食正常行为) - 这样的罐子wasnt被包含在部署中。

Having added the 3rd party library to the build path, the export tab wasnt defaulted to export the jar (eclipse normal behaviour) - so the jar wasnt being included in the deployment..

有过去那样的问题确定..

got past that problem ok..

这篇关于Android的 - 无法解析超的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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