Multiple dex files error when compiling with ant or Eclipse

前端 未结 8 404
猫巷女王i
猫巷女王i 2021-01-12 06:17

I am unable to build my application I am running the latest build tools downloaded today, this started happening after the update.

-dex:
   [dex] Converting          


        
8条回答
  •  抹茶落季
    2021-01-12 06:57

    I spent hours cleaning, creating new projects, uninstalling-reinstalling sdk... nothing worked. I didnt have any library project either ( i just had some jar files under lib). Howerver, In the end I fixed it and my steps were:

    • Search and clean all .apk files ( I had some in .svn folder...grr.. some developer had added some build related folders under svn)
    • delete bin and gen.
    • From eclipse project properties remove reference to library jars, press ok. Then again add them back. I had some java compiled jar library. I don't know why I had to remove and add it back, but that surely was needed.

提交回复
热议问题