Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP启动闪退 #91

Open
lanjinli opened this issue Mar 5, 2019 · 1 comment
Open

APP启动闪退 #91

lanjinli opened this issue Mar 5, 2019 · 1 comment

Comments

@lanjinli
Copy link

lanjinli commented Mar 5, 2019

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

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

@davideuler
Copy link

davideuler commented May 5, 2019

启动 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"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants