我試圖從Intellij Idea 12切換到Android Studio 0.2.1 目前我的android項目是使用maven-android-plugin安裝的。我使用actionbarsherlock作爲apklib依賴項。Android Studio Pre Dexing失敗
當我嘗試建立與Android Studio中的項目失敗德興前階段與
Error:Android Pre Dex: [xpp3-1.1.4c.jar] trouble processing "javax/xml/namespace/QName.class":
Error:Android Pre Dex: [xpp3-1.1.4c.jar] Ill-advised or mistaken usage of a core class (java.* or javax.*)
Error:Android Pre Dex: [xpp3-1.1.4c.jar] when not building a core library.
Error:Android Pre Dex: [xpp3-1.1.4c.jar] This is often due to inadvertently including a core library file
Error:Android Pre Dex: [xpp3-1.1.4c.jar] in your application's project, when using an IDE (such as
Error:Android Pre Dex: [xpp3-1.1.4c.jar] Eclipse). If you are sure you're not intentionally defining a
Error:Android Pre Dex: [xpp3-1.1.4c.jar] core class, then this is the most likely explanation of what's
Error:Android Pre Dex: [xpp3-1.1.4c.jar] going on.
但是到XPP3唯一的依賴是從actionbarsherlock,如果你考慮項目結構你看,它有「提供」的範圍。所以在我看來,這不應該是預先排好的或者包含在apk中。
你有沒有做過類似的觀察?或者你有沒有得到一個android-maven項目與actionbarsherlock依賴在android studio中構建?關於如何得到這個工作與Android工作室任何提示讚賞:)
問候 弗蘭克
如何將支持庫依賴項添加到您的項目中? – maclir
使用Maven:' com.google.android 支持-V4 ' –
Frank
你不想使用Android工作室的gradle與構建系統? – maclir