问题描述
我正在github项目的基础上在社交网络上进行工作。我的主要活动名为SocialMainActivity,将OAuth导入为lib和OAuth import facebook lib,facebool lib import google-play-service and support-v7 as lib。- 我删除多个jar文件并将所有jar文件存储在facebook lib中,
所以成功删除多个dex文件,在jar文件上。但是,在删除该错误后,我面临新的错误
类未找到路径上的SocialMainActivity:DexPathList等
我这么多的谷歌搜索,跟随所有这一步,但我没有成功。所以任何人都可以帮我解决这个错误?
主要活动属性和项目结构
解决方案1:
您更改了libs或.jar文件。所以重新启动
Eclipse。
解决方案2:
单击您的项目并选择属性。
属性
面板将打开。从左边的菜单去
Java Build Path - >订单和导出
。从下面的列表中取消选中
Android依赖关系
旁边的框。最后清理您的项目
并运行。
解决方案3:
创建一个新项目,并将所有内容从这一个复制到新的。
解决方案4:
再次查看你的课程 SocialMainActivity
。检查它的活动是否在您的清单文件中声明为反对片段。检查这个类的布局xml。 Android布局文本区分大小写,请仔细检查一下。
编辑:
如果您仅构建了Facebook SDK,或者您已将其作为自己的Android项目的库(我想是这样)。如果您的项目文件夹中有一些JAR(作为JAR添加到项目中),请将其删除并复制到项目根目录之外的位置,然后再将其作为外部jar添加。
检查 - 。
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.
- I delete multiple jar file and store all jar file in facebook lib,
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
Solution 1:
You changed your libs or .jar files. So Restart the Eclipse.
Solution 2:
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.
Solution 3:
Create a new project and copy everything from this one to the new one.
Solution 4:
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.
EDIT:
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.
Check - conversion-to-dalvik-format-failed-facebook-accesstokenserializationproxyv1.
这篇关于找不到Android类:没有找到class ... on path:DexPathList:class的链接失败:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!