Skip to content

ui-auth:3.2.0 gradle sync fails due to lint error #1116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
imax531 opened this issue Jan 23, 2018 · 3 comments
Closed

ui-auth:3.2.0 gradle sync fails due to lint error #1116

imax531 opened this issue Jan 23, 2018 · 3 comments

Comments

@imax531
Copy link

imax531 commented Jan 23, 2018

Step 1: Are you in the right place?

  • yes

Step 2: Describe your environment

  • Android device: N/A
  • Android OS version: N/A
  • Google Play Services version: 11.8.0
  • Firebase/Play Services SDK version: 11.8.0
  • FirebaseUI version: 3.2.0
  • Android Studio version: 3.0.1

Step 3: Describe the problem:

When trying to add auth-ui gradle dependency, gradle sync fails with the following error:

Failed to resolve: firebaseui-android.internal:lintchecks:unspecified

Steps to reproduce:

  1. Open a new project with Android Studio
  2. Add to the application build.gradle file the following lines:
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'
 //...
}
  1. Sync gradle

Observed Results:

The sync failed with the error message

Failed to resolve: firebaseui-android.internal:lintchecks:unspecified

Expected Results:

The sync should have succeeded

Relevant Code:

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
}

Misc:

  • I attempted to use compile instead of implementation but the problem persists.
    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
@SUPERCILEX
Copy link
Collaborator

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'
}

@samtstern
Copy link
Contributor

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>

@samtstern
Copy link
Contributor

This has been fixed and released in 3.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants