简体   繁体   中英

IntelliJ IDEA 10.5.1 not compatible with Android SDK tools r12?

I just updated to the latest Android SDK Tools, r12. Now compiling of my current project fails by

UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/anddev/andengine/audio/BaseAudioEntity;

<= The library is definitely added only once - so this must be a compiling problem.

It also fails finding some standard android themes:

...\\res\\values\\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Inverse'.

The paths to the SDK and other included libraries are correct.

Anyone with same issues? Thank you!

OK I got the compiling issue fixed - this happened because I included an external library (AndEngine) which sources already were existent in the /out folder. After clearing the folder's contents the project compiled correctly.

"UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/anddev/andengine/audio/BaseAudioEntity;"

Most probably there are AndEngine and some extension jars build so, that extension include classes of andengine. To resolve this issue -> exclude andengine src during rebuilding extensions (uncheck folder in export window).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM