reactnativecn/react-native-qq

APP启动闪退

Opened this issue · 1 comments

react-native-cli: 2.0.1
react-native: 0.55.4

react-native link react-native-qq
APP启动闪退

启动 AndroidStudio,在logcat里面看一下异常信息。我的是这个错误:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/conn/scheme/SchemeRegistry。

然后查了一下,发现新版本Android SDK里面,默认禁用了 Apache HTTP库,在AndroidManifest.xml文件的 节点里面加上如下配置,解决了我的问题:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>