尝试同步gradle文件时出现此错误: 这是我的应用程序gradle文件,很抱歉,如果格式不正确,很难正确设置它。
apply plugin: 'com.android.application'
apply plugin: 'io.objectbox'
apply plugin: 'io.fabric'
android {
compileSdkVersion 28
defaultConfig {
applicationId "fante.helloworld"
minSdkVersion 22
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
依赖项{ 实现fileTree(include:['* .jar'],dir:'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.firebaseui:firebase-ui-auth:4.1.0'
implementation 'com.google.firebase:firebase-database:16.0.4'
//implementation 'xyz.belvi.mobilevision:barcodescanner:2.0.3'
//implementation 'com.github.KingsMentor:MobileVisionBarcodeScanner:2.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.github.eluleci:flatui:3.0.0'
//implementation 'in.championswimmer:Android-SocialButtons:1.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation "com.android.support:support-core-utils:28.0.0"
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'cn.pedant.sweetalert:library:1.3'
implementation 'com.orhanobut:dialogplus:1.11@aar'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
testImplementation 'junit:junit:4.12'
}
应用插件:“ com.google.gms.google-services”