fix android 9.0 crash
MODIFY
bither-android/AndroidManifest.xml
bither-android/AndroidManifest.xml
<!-- -->
<uses-permission android:name="android.permission.GET_TASKS" />
-
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
- android:theme="@style/BitherTheme">
+ android:theme="@style/BitherTheme"
+ android:usesCleartextTraffic="true">
+
+ <uses-library android:name="org.apache.http.legacy" android:required="false" />
+
<activity
android:name="net.bither.activity.hot.HotActivity"
android:launchMode="singleTask"

MODIFY
bither-android/build.gradle
bither-android/build.gradle
@@ -9,9 +9,6 @@ android {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- ndk {
- abiFilters "armeabi"
- }
}
debug {
// multiDexEnabled true

MODIFY
build.gradle
build.gradle
@@ -49,7 +49,7 @@ subprojects {
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
-// jniLibs.srcDirs = ['native-libs']
+ jniLibs.srcDirs = ['native-libs']
jni.srcDirs = []
}

fix android 9.0 crash