Skip to content

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

Snoy-Kuo edited this page Mar 18, 2022 · 1 revision

Messages

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

Description

The Android Studio project can build and run, but got error of 'getJavaCompile'.
But search in the project, find no such words.

Dev env

  • macOS 11.6 (Big Sur) x64
  • Android Studio Bumblebee Patch 1
  • Android SDK version 27
  • buildTool: 28.0.3
  • Android Gradle Plugin: 3.3.3
  • Gradle: 4.10.3
  • Gradle JDK: corretto-1.8
  • Kotlin: 1.3.72

Tried approaches

Solutions

  • not found yet.