Status Update
Comments
rm...@google.com <rm...@google.com> #2
This mentioned interface was removed only starting 7.2
, so you shouldn't have problems with using firebase with AGP 7.1
. Are you sure you don't have a dependency somewhere (maybe buildSrc?) on AGP or just gradle-api
7.2?
ku...@gmail.com <ku...@gmail.com> #3
I looked in ~/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-api and ~/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle
Only 7.1.0-beta04 and 7.1.0-beta05 is there.
I checked with a new project. This problem only occurs when I enable the com.google.gms.google-services
and com.google.firebase.firebase-perf plugin.
Without these plugins everything works fine.
rm...@google.com <rm...@google.com>
ch...@google.com <ch...@google.com>
zh...@gmail.com <zh...@gmail.com> #4
This is a known issue, we are working with those teams so they release a compatible plugin.
di...@google.com <di...@google.com>
da...@google.com <da...@google.com> #5
yb...@google.com <yb...@google.com> #6
pa...@google.com <pa...@google.com> #7
Last communication from firebase-perf team stated a release is scheduled for this week.
yb...@google.com <yb...@google.com> #8
But it looks like not only perf but androidx.navigation.safeargs.gradle.SafeArgsPlugin
also has this issue.
pa...@google.com <pa...@google.com> #9
Yep, androidx.navigation.safeargs.gradle.SafeArgsPlugin
seems to be an issue too.
pa...@google.com <pa...@google.com> #10
hu...@google.com <hu...@google.com> #11
safegargs will be fixed with the next jetpack release which is currently scheduled for end of January.
sorry it is taking so long, the holidays have delayed many releases.
dr...@gmail.com <dr...@gmail.com> #12
firebase perf still has the issue, but I just removed that plugin for now as it requires no app side changes. instead I just commented it out. google-services 4.3.10 does not seem to be an issue.
I was able to get by the nav plugin issue by using a new snapshot:
buildscript {
repositories {
google()
mavenCentral()
maven("https://androidx.dev/snapshots/builds/8054565/artifacts/repository")
}
}
then update the plugin to
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.0-SNAPSHOT")
I don't know whether I should update the rest of my nav deps to 2.5.0 snapshot, but this'll do for now.
hu...@google.com <hu...@google.com> #13
Firebase has published perf-plugin 1.4.1 which includes the fix to this issue
hu...@google.com <hu...@google.com> #14
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Dolphin Canary 2 (2021.3.1.2)
- Android Gradle Plugin 7.3.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ku...@gmail.com <ku...@gmail.com> #15
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Dolphin Canary 5 (2021.3.1.5)
- Android Gradle Plugin 7.3.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
je...@google.com <je...@google.com> #16
ap...@google.com <ap...@google.com> #18
pa...@google.com <pa...@google.com> #19
This issue was already fixed, please upgrade your firebase perf plugin to 1.4.1
or later
hu...@google.com <hu...@google.com> #20
da...@spotify.com <da...@spotify.com> #21
me...@gmail.com <me...@gmail.com> #22
hu...@google.com <hu...@google.com> #23
@22: Not yet, because the new Jetifier version with the (speculative) fix is not released yet.
hu...@google.com <hu...@google.com> #24
ja...@gmail.com <ja...@gmail.com> #25
hu...@google.com <hu...@google.com> #26
buildscript {
repositories { ...
}
dependencies { ...
classpath 'com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta05'
}
}
Please let us know if you still run into this issue after updating Jetifier. That will confirm whether this issue is actually caused by Jetifier or not.
hu...@google.com <hu...@google.com> #27
ku...@gmail.com <ku...@gmail.com> #28
Caused by: java.lang.NullPointerException: Inflater has been closed
at kotlin.io.TextStreamsKt.copyTo(ReadWrite.kt:127)
at kotlin.io.TextStreamsKt.copyTo$default(ReadWrite.kt:120)
at kotlin.io.TextStreamsKt.readText(ReadWrite.kt:107)
at com.android.tools.build.jetifier.core.config.ConfigParser.loadDefaultConfig(ConfigParser.kt:54)
at android.databinding.tool.LibTypes$typeRewriter$2.invoke(LibTypes.kt:34)
at android.databinding.tool.LibTypes$typeRewriter$2.invoke(LibTypes.kt:23)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
at android.databinding.tool.LibTypes.getTypeRewriter(LibTypes.kt)
at android.databinding.tool.LibTypes.convert(LibTypes.kt:182)
at android.databinding.tool.LibTypes$nonNull$2.invoke(LibTypes.kt:120)
at android.databinding.tool.LibTypes$nonNull$2.invoke(LibTypes.kt:23)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
at android.databinding.tool.LibTypes.getNonNull(LibTypes.kt)
at android.databinding.tool.writer.BaseLayoutBinderWriter.<init>(BaseLayoutBinderWriter.kt:52)
at android.databinding.tool.BaseDataBinder.generateAll(BaseDataBinder.kt:54)
at com.android.build.gradle.internal.tasks.databinding.DataBindingGenBaseClassesTask$CodeGenerator.run(DataBindingGenBaseClassesTask.kt:217)
at com.android.build.gradle.internal.tasks.databinding.DataBindingGenBaseClassesTask.writeBaseClasses(DataBindingGenBaseClassesTask.kt:100)
hu...@google.com <hu...@google.com> #29
Finally, I've managed to reproduce this issue and found the root cause. I've explained this in detail at
I'll write a fix for this.
Description
Tested on AGP: 3.2.0
error: cannot generate view binders java.io.IOException: Stream closed
at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:142)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.Reader.read(Reader.java:140)
at kotlin.io.TextStreamsKt.copyTo(ReadWrite.kt:122)
at kotlin.io.TextStreamsKt.copyTo$default(ReadWrite.kt:115)
at kotlin.io.TextStreamsKt.readText(ReadWrite.kt:102)
at com.android.tools.build.jetifier.core.config.ConfigParser.loadDefaultConfig(ConfigParser.kt:54)
at android.databinding.tool.LibTypes$typeRewriter$2.invoke(LibTypes.kt:30)
at android.databinding.tool.LibTypes$typeRewriter$2.invoke(LibTypes.kt:23)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:154)
at android.databinding.tool.LibTypes.getTypeRewriter(LibTypes.kt)
at android.databinding.tool.LibTypes.convert(LibTypes.kt:179)
at android.databinding.tool.LibTypes$nonNull$2.invoke(LibTypes.kt:117)
at android.databinding.tool.LibTypes$nonNull$2.invoke(LibTypes.kt:23)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:154)
at android.databinding.tool.LibTypes.getNonNull(LibTypes.kt)
at android.databinding.tool.writer.LayoutBinderWriter$write$1.invoke(LayoutBinderWriter.kt:350)
at android.databinding.tool.writer.LayoutBinderWriter$write$1.invoke(LayoutBinderWriter.kt:315)
at android.databinding.tool.writer.KCodeKt.kcode(KCode.kt:172)
at android.databinding.tool.writer.LayoutBinderWriter.write(LayoutBinderWriter.kt:347)
at android.databinding.tool.LayoutBinder.writeViewBinder(LayoutBinder.java:360)
at android.databinding.tool.DataBinder.writeBinders(DataBinder.java:137)