Status Update
Comments
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com>
dc...@meta.com <dc...@meta.com> #2
dc...@gmail.com <dc...@gmail.com> #3
am...@gmail.com <am...@gmail.com> #4
This issue blocks convenient ways to avoid problems with Layout Inspector and Jetpack Compose (e.g.
In our build we exclude META-INF/*.version
files. But these version files are required for Layout Inspector to function with compose. Files are read at runtime so layout inspector knows which version of compose the app is running and launch the corresponding inspector.
Without packagingOptions per buildType it's hard to setup mentioned exclusion only for release builds.
sp...@google.com <sp...@google.com> #5
This is supported now.
Here is an example of what to add to your build.gradle
file for the use case from
androidComponents {
onVariants(selector().withBuildType("debug")) {
packaging.jniLibs.keepDebugSymbols.add("**/debugDoNotStrip.so")
}
}
Here is an example of what to add to your build.gradle
file for the use case from
androidComponents {
onVariants(selector().withBuildType("release")) {
packaging.resources.excludes.add("META-INF/*.version")
}
}
th...@gmail.com <th...@gmail.com> #6
sp...@google.com <sp...@google.com> #7
It's been supported since AGP 7.0.0
th...@gmail.com <th...@gmail.com> #8
sp...@google.com <sp...@google.com> #9
The androidComponents
should actually be added outside the android
block:
android {
...
}
androidComponents {
...
}
Description
See similar issue reported on
---
Build: AI-192.7142.36.36.6241897, 202002270544,
AI-192.7142.36.36.6241897, JRE 1.8.0_212-release-1586-b4-5784211x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.4, screens 2560x1440; Retina
AS: 3.6.1; Kotlin plugin: 1.3.72-release-Studio3.6-1; Android Gradle Plugin: 3.6.3; Gradle: 5.6.4; NDK: from local.properties: (not specified), latest from SDK: 21.1.6352462; LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: 3.17.0