按照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
这是官方文档的最小实现:
步骤:跳过
更新package.json
https://github.com/developer239/react-native-redux-wix-navigation/pull/3/commits/79e555cba30d83a1dad251621dcbd6d2673980b0
降级到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