Conversion to Dalvik format failed with error 1 - After updating Android SDK & ADT

前端 未结 8 1969
感动是毒
感动是毒 2021-01-13 11:05

After updating SDK and ADT for the latest release, I tried to run my application and Eclipse log the following error:

[- RichReaderDemo] Dx 
UNEXPECTED TOP-L         


        
相关标签:
8条回答
  • 2021-01-13 11:20

    try android update project

    when you use some libs from workspace maybe you must remove link-rows to they in Project -> Properties -> Java build path -> Source

    0 讨论(0)
  • 2021-01-13 11:32

    Go to Project-> Properties->Java Build Path->Libraries and remove all except the "Android X.Y" (in my case Android 5.0.1), You can keep android dependencies(if it doesn't contains any conflicting jar files). Do the same for order and export (in Project-> Properties->Java Build Path-> Order and export). Click OK. Clean the project. It should solve the problem. It is caused due to jar conflicting issues.

    0 讨论(0)
  • 2021-01-13 11:32

    Creating a new project is not necessary.

    Just delete the gen and bin folder and press project clean.

    0 讨论(0)
  • 2021-01-13 11:35

    The solution is:

    1) Delete the project (do no delete project contents from disk).
    2) Delete the .project and .classpath files in the project.
    3) Create new project with the current src (Create project from existing source)

    0 讨论(0)
  • 2021-01-13 11:36

    I had a cmd window open in the bin/dexedlibs and when i cd to the parent (bin), that solved the problem for me. So it appears to be very subtle build errors. During a clean, the builder will remove the dexedlib folder, and perhaps that it gets an error during the rmdir will cause this failure also.

    0 讨论(0)
  • 2021-01-13 11:44

    I think you should do Clean Project and rebuild it, solved it for me.

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