Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
471 views
in Technique[技术] by (71.8m points)

facebook - Android Class not found : Didn't find class ... on path: DexPathList : link of class failed :

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?

image of main activity propertiesenter image description here

Main activity properties and projects structures

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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:

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

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...