我試圖建立我的科爾多瓦應用程序,我得到這個錯誤:重複的DEX但複製內部消除的.jar
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ColorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/DimenRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/DrawableRes;
這是我grade androidDependecies
armv7Debug
+--- LOCAL: gcm.jar
+--- me.leolin:ShortcutBadger:1.1.2
+--- com.android.support:support-v4:23.1.1
| \--- LOCAL: internal_impl-23.1.1.jar
+--- org.xwalk:xwalk_core_library:15.44.384.13
+--- android:CordovaLib:unspecified:debug
\--- android.phonegap-facebook-plugin:FacebookLib:unspecified:debug
+--- LOCAL: android-support-v4.jar
+--- LOCAL: bolts-android-1.1.2.jar
\--- android:CordovaLib:unspecified:debug
這表明,Android的。 phonegap-facebook-plugin:FacebookLib需要已經調用的android-support-v4.jar,因此它會被複制。
我的問題是,我只有一個android-support-v4.jar在我的項目文件夾在FacebookLib \ libs下,這是我能找到的唯一一個。
在我的build.gradle我評論compile "com.android.support:support-v4:+"
,當我建立與Android工作室它的工作原理,但是當相反,我做我的ionic build android
變化會被覆蓋
您節省了我的一天!非常感謝你 –