我尝试安装FirebaseUI,现在我有这个错误的gradle。我尝试安装gradle在build.gradle文件中告诉我的库,但Android Studio给我这个错误,它不让我按“安装库和同步项目”。Android Studio中不会让我“安装库和同步工程”
这里是我的build.gradle文件
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.avantefg.avante"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile('com.digits.sdk.android:digits:[email protected]') {
transitive = true;
}
compile('com.mikepenz:materialdrawer:[email protected]') {
transitive = true
}
dependencies {
compile 'com.getbase:floatingactionbutton:1.10.1'
}
//Lollipin
compile('com.github.orangegangsters:lollipin:[email protected]') {
transitive = true
}
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
compile 'com.google.gms:google-services:3.1.0'
compile 'com.wang.avi:library:2.1.3'
compile 'jp.wasabeef:blurry:2.0.3'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-auth:11.0.4'
compile 'com.firebaseui:firebase-ui-auth:2.2.0'
compile 'io.github.yuweiguocn:SquareLoading:1.3.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:customtabs:25.3.1'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.cocosw:bottomsheet:[email protected]'
compile 'com.squareup.okhttp3:okhttp:3.4.2'
compile 'com.github.barteksc:android-pdf-viewer:2.7.0-beta.1'
compile 'com.android.volley:volley:1.0.0'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
}
apply plugin: 'com.google.gms.google-services'
这里的项目build.grade文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'io.fabric.tools:gradle:1.+'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven{
url "https://github.com/omadahealth/omada-nexus/raw/master/release"
}
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
请帮助我的人!
您可以发布您的项目级的build.gradle? –
是的!我刚添加它! – Gonzalo4488
检查interenet连接 – Anil