After updating Gradle to com.android.tools.build:gradle:3.1.0
, in the log I now see:
Folder E:\WORK\App\car_android\carapp\build\generated\source\kaptKotlin\devRelease
3rd-party Gradle plug-ins may be the cause
It can do things such as: Extend the Gradle model (e.g. add new DSL elements that can be configured) Configure the project according to conventions (e.g. add new tasks or configure sensible defaults) Apply specific configuration (e.g. add organizational repositories or enforce standards)
The Android Gradle plugin (AGP) is the official build system for Android applications. It includes support for compiling many different types of sources and linking them together into an application that you can run on a physical Android device or an emulator.
In Android Studio, go to File > Project Structure. Then select the "project" tab on the left. Your Gradle version will be displayed here.
If you are receiving the warning:
3rd-party Gradle plug-ins may be the cause
in the build tab, it appears to be a known issue with Android Studio v3.1.x.
According to this report, It might be related to Instant App provision, but even removing that from the run/Debug configuration does not appear to resolve the issue (at least not with my installation of AS v3.1.1).
Please vote up this issue so that it will be given more attention by the Android Studio team and hopefully a timely fix.
This happens because the Kapt annotation processor uses this directory to store Kotlin generated files.
The directory is a new generated source set, the same way you can split your source files into src/main/java
and src/main/kotlin
However the Android Gradle plugin does not recognize this directory as a generated source set.
For the most part this is completely harmless as most 3rd party processors are generating .Java
files. Kapt writes them to the build/generated/source/kapt
directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With