Android: Conversion to Dalvik format failed: Unable to execute dex: null

后端 未结 14 1654
借酒劲吻你
借酒劲吻你 2020-12-28 13:11

I\'m trying to use the SmugFig SmugMug API on Android. It was designed for J2SE I would imagine, so I\'m not sure it will even work on Android, but I figured it was worth t

相关标签:
14条回答
  • 2020-12-28 13:38

    Steps that help me to remove this error

    1. remove user libraries(external libraries).
    2. clean the project
    3. again add the external library
    4. build the project
    5. run the project.

    Hope this will be helpful to you. Thanks.

    0 讨论(0)
  • 2020-12-28 13:39

    After the Eclipse DDMS update 8.0.0 came with the release of Android 2.3 this error suddenly appeared.

    None of the above suggestions helped, but it turned out that the root of the problem was a referenced project (a few classes shared between the server and client sides).

    Once I removed the project reference and built and included a jar of the once referenced project the problem ceased to exist.

    Seems like something went rogue in DDMS 8.0.0 with referenced projects.

    0 讨论(0)
  • 2020-12-28 13:39

    Absolutely none of the previously mentioned "fixes" have worked for me, which comes as no surprise because they aren't even addressing the problem to begin with.

    The bug itself stems from a conflict with Proguard. Here is the bug report: http://code.google.com/p/android/issues/detail?id=18359 And to fix it, you simply need to manually update Proguard: http://sourceforge.net/projects/proguard/files/latest/download?source=files

    0 讨论(0)
  • 2020-12-28 13:42

    Only this solve my problem .Project > Clean

    0 讨论(0)
  • 2020-12-28 13:42

    For projects which uses New Relic

    Update New Relic via "Update New Relic" under Project r'click -> Update New Relic. This worked for me.

    0 讨论(0)
  • 2020-12-28 13:43

    Ensure you don't reference the same project within a jar and eclipse. For instance, you have a project called myproject in eclipse. Your android project references both myproject project and the jar generated from it. This will give an error when you try to dex as it tries to dex against the generated classes from myproject and from the myproject.jar

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