Status Update
Comments
ga...@google.com <ga...@google.com>
bi...@google.com <bi...@google.com>
bi...@google.com <bi...@google.com> #2
The problem appears when old AGP(the ones that don't compile with Gradle 8.0) runs with Gradle 8.0 and above. The build wouldn't fail but it shows a long stack trace which looks pretty bad. If we can back port a fix to older AGP versions, I think the fix would be to not output warnings when this internal method doesn't exist.
au...@google.com <au...@google.com> #3
Yes agreed that it doesnt fail the build and I agree we should not log this to the user.
au...@google.com <au...@google.com> #4
AGP 8.0.0-alpha05 + Gradle 8.0 milestone-3 is still throwing. Any plans to move here?
bi...@google.com <bi...@google.com> #5
The fix is included in AGP 8.0 alpha07 and also AGP 7.4
sa...@google.com <sa...@google.com> #6
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 Electric Eel Beta 4 (2022.1.1.14)
- Android Gradle Plugin 7.4.0-beta04
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!
sa...@google.com <sa...@google.com> #7
Further fixes for this issue are now available in:
- Android Studio Flamingo Canary 7 (2022.2.1.7)
- Android Gradle Plugin 8.0.0-alpha07
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
ph...@gmail.com <ph...@gmail.com> #8
ในวันที่ พฤ. 3 พ.ย. 2022 20:42 <buganizer-system@google.com> เขียนว่า:
pa...@gmail.com <pa...@gmail.com> #9
Workaround for AGP < 7.4 on Gradle 8 (idea from
// TODEL https://issuetracker.google.com/issues/252848749
if (com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION < "7.4") {
val loggerFactory: org.slf4j.ILoggerFactory = org.slf4j.LoggerFactory.getILoggerFactory()
val addNoOpLogger: java.lang.reflect.Method = loggerFactory.javaClass
.getDeclaredMethod("addNoOpLogger", String::class.java)
.apply {
isAccessible = true
}
addNoOpLogger(loggerFactory, "StartParameterUtils")
} else {
error("AGP version changed, review hack.")
}
Description
DESCRIBE THE ISSUE IN DETAIL: Gradle 8.0-milestone-2 causes exception in AGP
STEPS TO REPRODUCE:
Expected:
No exceptions
Actual:
Exception
AGP is using internal API that just got refactored inhttps://github.com/gradle/gradle/commit/8b7dda9a763379c031712ceabcf9ec04cbf87a5e
Note, this does not fail the build, but it does print a giant exception to the log.