Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is "3rd-party Gradle plug-ins may be the cause" showing after updating Gradle to 3.1.0?

Tags:

gradle

kotlin

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

like image 644
azsoftco Avatar asked Mar 28 '18 23:03

azsoftco


People also ask

What does plugins do in Gradle?

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)

What is Android plugin for Gradle?

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.

How do I find Gradle plugin version?

In Android Studio, go to File > Project Structure. Then select the "project" tab on the left. Your Gradle version will be displayed here.


2 Answers

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.

like image 189
Phileo99 Avatar answered Sep 22 '22 05:09

Phileo99


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.

like image 33
mvbrenes Avatar answered Sep 23 '22 05:09

mvbrenes