java.lang.NoClassDefFoundError的:com.urbanairship.UAirship

编程入门 行业动态 更新时间:2024-10-23 07:14:33
本文介绍了java.lang.NoClassDefFoundError的:com.urbanairship.UAirship的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个新的MAC(狮子10.7.3)。安装Eclipse和Android SDK中。检查了从SVN我的项目,试图逃跑,并得到了这个丑陋的异常:

I've got a new mac (Lion 10.7.3). Installed Eclipse and android sdk. Checked out my project from SVN , tried to run and got this ugly exception:

05-20 12:17:21.175: E/AndroidRuntime(32499): FATAL EXCEPTION: main 05-20 12:17:21.175: E/AndroidRuntime(32499): java.lang.NoClassDefFoundError: com.urbanairship.UAirship 05-20 12:17:21.175: E/AndroidRuntime(32499): at com.neo.ovs3.MyApp.onCreate(MyApp.java:16) 05-20 12:17:21.175: E/AndroidRuntime(32499): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969) 05-20 12:17:21.175: E/AndroidRuntime(32499): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3292) 05-20 12:17:21.175: E/AndroidRuntime(32499): at android.app.ActivityThread.access$2200(ActivityThread.java:117) 05-20 12:17:21.175: E/AndroidRuntime(32499): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969) 05-20 12:17:21.175: E/AndroidRuntime(32499): at android.os.Handler.dispatchMessage(Handler.java:99) 05-20 12:17:21.175: E/AndroidRuntime(32499): at android.os.Looper.loop(Looper.java:130) 05-20 12:17:21.175: E/AndroidRuntime(32499): at android.app.ActivityThread.main(ActivityThread.java:3703) 05-20 12:17:21.175: E/AndroidRuntime(32499): at java.lang.reflect.Method.invokeNative(Native Method) 05-20 12:17:21.175: E/AndroidRuntime(32499): at java.lang.reflect.Method.invoke(Method.java:507) 05-20 12:17:21.175: E/AndroidRuntime(32499): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 05-20 12:17:21.175: E/AndroidRuntime(32499): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 05-20 12:17:21.175: E/AndroidRuntime(32499): at dalvik.system.NativeStart.main(Native Method)

试图通过创建一个新的项目,重新创建清单文件,改变了UA库,配置构建path.Nothing helps.The项目本身编译没有错误修复它以不同的方式。

Tried to fix it in various ways by creating a new project ,recreating manifest file , changing the UA library , configuring the build path.Nothing helps.The project itself compiles without errors.

重要一提的是在我的previous MAC(在PC上)同一项目工作后,立即检查out.That意味着这是不是项目的问题。

Important to mention that on my previous mac (and on PC) the same project is working immediately after check out.That means that this is not the project problem.

任何想法?

推荐答案

找到了解决办法!

这确实是由ADT更新造成的。

This indeed caused by ADT update.

我刚刚创建了一个新的Andr​​oid项目,并注意到结构从SVN我的previous项目不同。

I just created a new android project and noticed that the structure is different from my previous project from SVN.

在那之后我跟着这个帖子Gson经过NoClassDefFoundError的ADT和SDK工具更新V17

After that I followed this post Gson NoClassDefFoundError after ADT and SDK Tools update to v17

和复制的旧文件到新的项目。最后,所有工作得很好。

And copied the old files to the new project. Finally all worked fine.

我希望这将有助于人们同样的问题。

I hope this will help people with the same problem.

更多推荐

java.lang.NoClassDefFoundError的:com.urbanairship.UAirship

本文发布于:2023-05-25 10:55:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/226617.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:lang   java   NoClassDefFoundError   UAirship   urbanairship

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!