任务':app:transformDexArchiveWithExternalLibsDexMergerForDebug'的执行失败。 [react-native wix导航] [v2]

时间:2018-09-18 08:56:13

标签: android reactjs react-native react-native-navigation

按照official v2 documentation中的所有步骤操作后,出现以下错误:

$ cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug

> Configure project :react-native-navigation 
downloadRobolectricDependencies into /Users/michaljarnot/IdeaProjects/react-native-redux-wix-navigation/android/build/robolectric-3.5.1-dependencies

> Task :react-native-navigation:compileReactNative56DebugJavaWithJavac 
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

这是官方文档的最小实现:

  1. 步骤:https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/ec0e0143642c3743c1e9ff085ec1db2fd8701d91

  2. 步骤:跳过

  3. 步骤:https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/55529ecbb600e9c382ce36a19f3c1c1f529fefbb

  4. 步骤:https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/1fd8d3c6e011f2eac89ace24849b8029aa816b4d

  5. 步骤:https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/fe780338806f4b480540b9ec170d043467b08510

  6. 步骤:https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/0f785ab442bf71baff01e1ed9eb23899677967a7

  7. 步骤:https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/9b5bcfc4c0b6f55e13563377345bab92267ed7ad

  8. 步骤:https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/43e264da148344f609d892440ca8a012283aef93

  9. 更新package.json https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/79e555cba30d83a1dad251621dcbd6d2673980b0

  10. 降级到react-native@0.56.0 https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/a4e5fcdd7fcdb8d56450e6eb915995865b4fd23b

任何一个拥有android知识的人都可以向我指出正确的方向吗?

以下是在GitHub上发布的链接:https://github.com/wix/react-native-navigation/issues/3974

0 个答案:

没有答案
相关问题