When trying to add auth-ui gradle dependency, gradle sync fails with the following error:
Failed to resolve: firebaseui-android.internal:lintchecks:unspecified
dependencies {
// ...
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.android.gms:play-services-auth:11.8.0'
implementation 'com.firebaseui:firebase-ui-auth:3.2.0'
//...
}
The sync failed with the error message
Failed to resolve: firebaseui-android.internal:lintchecks:unspecified
The sync should have succeeded
build.gradle (Module: app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.roytmax.myapplication"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.android.gms:play-services-auth:11.8.0'
implementation 'com.firebaseui:firebase-ui-auth:3.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
builde.gradle (Project: MyApplication)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
compile 'com.google.firebase:firebase-auth:11.8.0'
compile 'com.google.android.gms:play-services-auth:11.8.0'
compile 'com.firebaseui:firebase-ui-auth:3.2.0'
````
* The sync succeeds with `com.firebaseui:firebase-ui-auth` versions 3.1.2 and 3.1.3.
* I attempted to use the entire library, but the same error occurs
compile com.firebaseui:firebase-ui:3.2.0
```
Shucks! We really need to be more careful about our modules... working on a fix right now. In the meantime, this should work:
compile('com.firebaseui:firebase-ui-auth:3.2.0') {
exclude module: 'lintchecks'
}
Here are the dependencies of firebase-ui-auth 3.2.0 in the POM:
<dependencies>
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-auth</artifactId>
<version>11.8.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-auth</artifactId>
<version>11.8.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>design</artifactId>
<version>27.0.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>customtabs</artifactId>
<version>27.0.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.android.support.constraint</groupId>
<artifactId>constraint-layout</artifactId>
<version>1.1.0-beta3</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>android.arch.lifecycle</groupId>
<artifactId>extensions</artifactId>
<version>1.0.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>cardview-v7</artifactId>
<version>27.0.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>firebaseui-android.internal</groupId>
<artifactId>lintchecks</artifactId>
<version>unspecified</version>
<scope>runtime</scope>
</dependency>
</dependencies>
This has been fixed and released in 3.2.1.
Most helpful comment
Shucks! We really need to be more careful about our modules... working on a fix right now. In the meantime, this should work: