Status Update
Comments
eb...@netflix.com <eb...@netflix.com> #2
full stacktraces attached.
sg...@google.com <sg...@google.com>
je...@google.com <je...@google.com>
bi...@google.com <bi...@google.com> #3
building a test app
What AGP plugin is applied in the MainApp
? Is it a test only module?
eb...@netflix.com <eb...@netflix.com> #4
We're applying the "com.android.application" plugin, MainApp
is our app module. Here what we have in our plugin dsl for the main app:
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("io.gitlab.arturbosch.detekt")
}
Sorry, I said test app because the task failing have AndroidTest
in it. Our app can be built on debug and release without issue, only packageOurVariantAndroidTest
fails.
bi...@google.com <bi...@google.com> #5
Thanks for the clarification.
Our app can be built on debug and release without issue, only packageOurVariantAndroidTest fails.
This in quite interesting. Does the packageDebugAndroidTest
work?
eb...@netflix.com <eb...@netflix.com> #6
No, :MainApp:packageDebugAndroidTest
will fail (in ~10 second, quite fast feedback)
eb...@netflix.com <eb...@netflix.com> #7
Our app can be built on debug and release
I mean doing :MainApp:assembleDebug
or :MainApp:assembleRelease
is successful.
bi...@google.com <bi...@google.com>
xa...@google.com <xa...@google.com> #8
This is blocking netflix. moving to P1.
bi...@google.com <bi...@google.com> #9
I can reproduce it by
-
have a project with dynamic features
-
enable minify for debug
-
run android test for debug variant
The direct cause is l8 task of the android test component is expecting dex from the feature module. However, we only publish stuff from feature module to base module.
eb...@netflix.com <eb...@netflix.com> #10
Hello, glad you were able to reproduce it. Since it has been few dyas can I ask if this is something that will be fixed in an AGP 8.1.3 update?
bi...@google.com <bi...@google.com> #11
Yes, the fix will be in 8.1.3
xa...@google.com <xa...@google.com>
an...@google.com <an...@google.com> #12
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 Giraffe | 2022.3.1 Patch 3
- Android Gradle Plugin 8.1.3
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!
eb...@netflix.com <eb...@netflix.com> #13
Thanks, issue fixed!
Description
After updating our project from AGP 8.0.2 to AGP 8.1.2 we're getting the following error while building a test app :
The crashed code seems to point to dynamic feature code path, we have dynamic features. Side note, we're using DexGuard 9.4.17.
Using Java 17 / Gradle 8.1.1 / AGP 8.1.2