FirebaseUI-Android: Can't build the project with Firebase UI Auth 3.1.1 / 3.1.2
Step 2: Describe your environment
- Android OS version: N/A build time issue
- Firebase/Play Services SDK version: 11.6.2
- FirebaseUI version: 3.1.1, 3.1.2
Step 3: Describe the problem:
Cannot build the project when the Firebase auth dependency is added.
Steps to reproduce:
- add following libraries ‘com.firebaseui:firebase-ui-auth:3.1.1’ to app/build.gradle (using
compile
as we’re using older Gradle version)
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:support-v4:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:customtabs:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.google.android.gms:play-services-gcm:11.6.2'
compile 'com.google.firebase:firebase-core:11.6.2'
compile 'com.google.firebase:firebase-messaging:11.6.2'
compile 'com.google.firebase:firebase-auth:11.6.2'
compile 'com.firebaseui:firebase-ui-auth:3.1.2'
Observed Results:
The project build fails with following error:
(...)/app/build/intermediates/res/merged/dev/homologation/layout/fui_phone_layout.xml
Error:(16, 57) No resource found that matches the given name (at 'layout_constraintBaseline_toBaselineOf' with value '@id/phone_layout').
Expected Results:
The app to build
Relevant Code:
gradle-wrapper.properties
#Mon Dec 18 18:10:48 BRST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
build.gradle
repositories {
jcenter()
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'me.tatarka:gradle-retrolambda:3.2.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:3.1.2'
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
dependencies { classpath "org.codehaus.groovy.modules.http-builder:http-builder:0.7.1" }
}
}
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
app/build/intermediates/res/merged/dev/homologation/layout/fui_phone_layout.xml
<com.firebase.ui.auth.ui.phone.CountryListSpinner
android:id="@+id/country_list"
style="@style/FirebaseUI.CountrySpinner"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBaseline_toBaselineOf="@id/phone_layout" />
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 15 (9 by maintainers)
@jzurek if you want to unblock yourself right now, you can just do the following:
version-3.1.3-dev
./gradlew :library:prepareArtifacts :library:publishAllToMavenLocal
repositories { mavenLocal() }
to yourbuild.gradle
3.1.3-SNAPSHOT
This should be super safe since the only thing on the
3.1.3
branch that’s not on master is the fix for this issue.Ok I can confirm this issue when I use
'com.android.tools.build:gradle:2.3.3'
but not when I use'com.android.tools.build:gradle:3.0.1'
.Now I will try and figure out if this is my fault or something with the support libs / gradle plugin.
The fix for this will be in version
3.1.3
. The known workaround is to use gradle build tool3.0.0+
withaapt2
enabled (which is default).