facebook/fbt

WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'

jenujari opened this issue · 3 comments

💬 Having warning in the Gradle build flow.

I am having the following log printed when I do Gradle build for my react native android project.

Configure project :react-native-fbt
WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed in version 5.0 of the Android Gradle plugin.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

Is it ok to ignore this or have some extra settings to do in my setup?

Do we need some more info?

@jenujari , this should be fixed as of 3388738 and in react-native-fbt v0.0.2
https://www.npmjs.com/package/react-native-fbt