Status Update
Comments
xa...@google.com <xa...@google.com>
ga...@google.com <ga...@google.com> #2
Can you please share build scans (
[Deleted User] <[Deleted User]> #3
Yes. The next time this happens, I will be sure to grab the build scan link, as well as the follow-up clean --no-build-cache
success, and share both with you.
Description
Build: AI-201.8538.31.41.6692364, 202007191539,
AI-201.8538.31.41.6692364, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.6, screens 1920x1080, 1920x1080
AS: 4.1 Beta 5; Kotlin plugin: 1.3.72-release-Studio4.1-5; Android Gradle Plugin: 4.0.1; Gradle: 6.5.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply all required information.
I have a multi-module project (only six modules right now). It's a heterogeneous mix with an android app module, a couple android library modules, and some kotlin-jvm and java-library modules. By the latter two, I mean they have either the
"org.jetbrains.kotlin.jvm"
orjava-library
plugins applied.Not always, but regularly, my app will crash at runtime with a NoClassDefFoundError. The missing class has, to date, been from two separate java/kotlin library modules. I have not yet observed a missing class from an android library module, but this may be due to small sample size.
I have observed that I can fix this problem by running a new build with
clean --no-build-cache
. This suggests something might be wrong with incremental build.I have taken a look at one of the failed-at-runtime APKs (with AS's APK Analyzer tool) and indeed the class does not appear to be present in any of the dex files.
I have saved APKs from the runtime-failure and runtime-success scenarios, and can share them if there is some private channel to use. This is a proprietary app. I can also provide build scans if those might be of use.