安卓类未发现:未找到类......在路径:DexPathList:类链接失败: [英] Android Class not found : Didn't find class ... on path: DexPathList : link of class failed :

查看:3270
本文介绍了安卓类未发现:未找到类......在路径:DexPathList:类链接失败:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做下就可以了github上项目的指导做好社交网络上的工作。我有进口的OAuth的lib和OAuth的导入Facebook的lib中的主要活动名为SocialMainActivity,facebool LIB导入谷歌播放服务和支持-V7的库。

I am doing work on social network under guidence of github project on it. I have main activity named SocialMainActivity that import OAuth as lib and OAuth import facebook lib, facebool lib import google-play-service and support-v7 as lib.

  • 在我删除多个jar文件,并存储所有jar文件在facebook的LIB,

这样的成功,除去错误多DEX文件,在jar文件。但在删除错误我面对新的错误

so success to remove error multiple dex file, on jar file. But after remove that error i face new error

Class not found SocialMainActivity on path: DexPathList etc. 

我这么多的谷歌搜索,并遵守所有的一步,但我没有成功编辑。因此,任何人可以帮我解决这个问题?

I so much googling and follow all that step but i not success ed. So any one can help me to solve this error?

主要活动属性和项目结构

Main activity properties and projects structures

推荐答案

解决方案1:

您改变了您的库或.jar文件。因此,重新启动    月食。

You changed your libs or .jar files. So Restart the Eclipse.

解决方案2:

右键点击你的项目并选择属性。该    属性面板将会打开。从左侧进入菜单     Java构建路径 - >订单和出口。从下面取消选中列表    旁边的盒子Android的依赖关系。最后清理项目    并运行。

Right click on your project and select properties. The "Properties for " panel will open. From the menu on the left go to Java Build Path -> Order and Export . From the list below uncheck the box next to "Android Dependencies". Finally clean your project and run.

解决方案3:

创建一个新项目,并复制了从这样一来新的。

Create a new project and copy everything from this one to the new one.

解决方案4:

SocialMainActivity 再次查看类。检查,如果它的活动,你有没有在你的清单文件中声明它作为反对片段。检查这个类的布局XML。 Android的布局文字是大小写敏感的这么仔细检查一切。

View your class SocialMainActivity again. Check that if its activity, did you declared it in your manifest file as oppose to fragment. Check the layout xml of this class. Android layout text is case sensitive so check everything carefully.

编辑:

多DEX文件中定义   LCOM / Facebook的/ AccessToken $ SerializationProxyV1;

Multiple dex files define Lcom/facebook/AccessToken$SerializationProxyV1;

嗯,这取决于如果你只建立了Facebook的SDK,或者你已经把它列入为图书馆为自己的Andr​​oid项目(我想是这样的话)。如果你有一些JAR的在您的项目文件夹中(添加为JAR文件到您的项目),地方删除它们,并将它们复制你的项目根目录之外,然后再次将它们添加为外部罐子。

Well, it depends if you build the Facebook SDK only, or you've included it as Library for your own Android project (I suppose that's the case). If you have some JAR's within your project folder (added as JARs to your project), remove them and copy them somewhere outside your project root, then add them again as the external jars.

查看 - <一个href="http://stackoverflow.com/questions/14789095/conversion-to-dalvik-format-failed-facebook-accesstokenserializationproxyv1">conversion-to-dalvik-format-failed-facebook-accesstokenserializationproxyv1.

这篇关于安卓类未发现:未找到类......在路径:DexPathList:类链接失败:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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