Conversion to Dalvik format failed with error 1 with javax/net/SocketFactory.class

前端 未结 19 1822

Encounter this problem when trying to Build Project getting such output in console:

[2010-07-19 23:29:23 - myProject]
trouble processing \"javax/net/SocketFa         


        
相关标签:
19条回答
  • 2020-12-05 18:41

    I could resolve this issue by creating a new project, looks like the some project settings were creating this issue and could not really find the root cause for that. But, dumping the existing source code onto the new project resovled this issue. If anyone has found the root cause for this problem pls do let me know.

    0 讨论(0)
  • 2020-12-05 18:43
    • I solved the problem (at least for me).

    Here's what I did:

    • Go to Project » Properties » Java Build Path » Libraries
    • Remove all except the "Android X.Y" click OK.
    • Go to Project » Clean » Clean projects selected below » select your project and click OK.

    That did the trick for me. Hope it works for you as well

    Update: well actually I might have to retract my opinion.. the actions removed the error messages but now I am missing certain classes and methods... arggghhhh

    0 讨论(0)
  • 2020-12-05 18:43

    I just restarted Eclipse, and the error didn't appear anymore!

    0 讨论(0)
  • 2020-12-05 18:43

    The answer I found was checking the source and library build path in the project's properties. Most likely there will be a duplicate as in something being referenced in both the source and library tabs. So delete the extra in the source tab and then clean the project and you should be good to go.

    0 讨论(0)
  • 2020-12-05 18:44

    Hit same problem shown on your log when trying to run an example project which was imported into eclipse.

    Additional Info: in eclipse's Problems View I see the following error:

    "The project cannot be built until build path errors are resolved"

    In my case the imported project find the libraries just right(by just right I mean I can see the external path to each of the android libs in this case 2 libs, android.jar and maps.jar). So no shuffling of libs in my case, but might be your problem.

    I followed Spock's suggestion of cleaning the project which I had to clean multiple times until it somehow resolve its issues. After, issue was solved I had to specify an AVD for the project to run and soon after was up and running on the emulator. Also, note that my eclipse is set up to Build Automatically.

    In my case I'm not missing any class files or anything after the clean as the build is properly generating them.

    Regards!

    0 讨论(0)
  • 2020-12-05 18:45

    I just had the same problem and I tried all of the solutions listed here with no success (I was starting to get annoyed). Then I removed the project from the workspace and then imported it again, and there were no problems!

    0 讨论(0)
提交回复
热议问题