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

前端 未结 8 2135
感动是毒
感动是毒 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条回答
  •  旧时难觅i
    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.

提交回复
热议问题