Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com>
ch...@google.com <ch...@google.com> #2
There seem to be some issues with the kotlin android plugin. Filed https://youtrack.jetbrains.com/issue/KT-20341 for now.
ho...@gmail.com <ho...@gmail.com> #3
ch...@google.com <ch...@google.com> #4
ch...@google.com <ch...@google.com> #5
Fixed in ag/Iaf12dc1c464deef1d656bee3eb6ef661d5d7615f
Incremental compilation will be disabled when kapt is used. Will be available in the next release.
Incremental compilation will be disabled when kapt is used. Will be available in the next release.
Description
Gradle: 4.1
AGP: 3.0.0-beta5
Build tools: 26.0.1
Problem:
The sample is using an annotation processor. It generates two helper classes MainActivity$$StateSaver and TestKotlinClass$$StateSaver. The app is using reflection to find those classes and to save the state.
After a clean build both classes are generated and bundled in the apk and everything working as expected. During an incremental build for some reason MainActivity$$StateSaver is NOT bundled in the app, whereas TestKotlinClass$$StateSaver is inside of the APK. You can easily see this by inspecting the apk.
Both classes are generated and can be found in app/build/generated/source/kapt/debug/com/elyeproj/evernotestateissue. There shouldn't be a reason why MainActivity$$StateSaver is not part of the APK.
I was able to reproduce the issue in the terminal and Android Studio.