support Android Studio 3.0
MODIFY
bither-android/build.gradle
bither-android/build.gradle
-repositories {
- mavenLocal()
- mavenCentral()
+//repositories {
+// mavenLocal()
+// mavenCentral()
+//}
+configurations {
+ all {
+ exclude module: 'httpclient'
+ exclude module: 'commons-logging'
+ }
}
dependencies {
compile 'com.google.protobuf:protobuf-java:2.5.0'

MODIFY
build.gradle
build.gradle
@@ -3,10 +3,10 @@ apply plugin: 'com.android.library'
buildscript {
repositories {
mavenCentral()
- maven {
- url 'https://maven.google.com/'
- name 'Google'
- }
+// maven {
+// url 'https://maven.google.com/'
+// name 'Google'
+// }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
@@ -36,6 +36,11 @@ subprojects {
multiDexEnabled true
}
+ dexOptions {
+ preDexLibraries = false
+ additionalParameters=['--core-library']
+ }
+
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
@@ -73,12 +78,12 @@ subprojects {
}
}
}
-repositories {
- maven {
- url 'https://maven.google.com/'
- name 'Google'
- }
-}
+//repositories {
+// maven {
+// url 'https://maven.google.com/'
+// name 'Google'
+// }
+//}
allprojects {
repositories {
jcenter()

support Android Studio 3.0