我的build.gradle
:
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
buildscript {
repositories
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.myapp"
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
multiDexEnabled true
}
productFlavors {
production {
applicationId "com.myapp"
}
development {
applicationId "com.myapp.development"
}
staging {
applicationId "com.myapp.staging"
}
qa {
applicationId "com.myapp.qa"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
res.srcDirs = ['src/main/res', 'src/main/res/drawable', 'src/main/res/views/activities', 'src/main/res/anim']
}
}
}
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile project(':facebook')
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile files('libs/gson-2.3.1.jar')
compile files('libs/retrofit-1.9.0.jar')
compile('com.digits.sdk.android:digits:1.8.0@aar') {
transitive = true;
}
}
我试过启用multidex
,也没有来自 Fabric 支持论坛的帮助。
还尝试将gson
模块从数字中排除为
compile('com.digits.sdk.android:digits:1.8.0@aar') {
transitive = true;
exclude module: 'gson';
}
PS:我只想使用电话号码验证/登录功能,不需要推特登录功能。我也在使用改造和毕加索。