【发布时间】:2016-07-02 12:18:13
【问题描述】:
我一直在开发一个native-module 以在我的react-native 项目中使用。
我的本机模块使用okhttp3 库。
但是,当我运行 react-native run-android 的命令时,出现以下异常:
Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexException: Multiple dex files define Lokhttp3/Address;
我猜react-native 和我都添加了okhttp3 库以在同一个应用程序中使用。
有没有机会使用react-native添加的okhttp3库?
或者有没有机会克服这个问题?
【问题讨论】:
标签: android react-native build.gradle okhttp3