我正在尝试从Intellij Idea 12切换到
Android Studio 0.2.1
目前我的android项目是使用maven-android-plugin设置的.我使用actionbarsherlock作为apklib依赖项.
目前我的android项目是使用maven-android-plugin设置的.我使用actionbarsherlock作为apklib依赖项.
当我尝试使用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工作室中构建?关于如何使用android studio的任何提示都很受欢迎:)
问候
坦率