1

enter image description here

I don't get from my stack trace who is calling variant.getAssemble()

Android Studio version: 3.4 Gradle version 5.1.1

Zoe
  • 27,060
  • 21
  • 118
  • 148
ghita
  • 2,746
  • 7
  • 30
  • 54
  • try to run `gradlew clean` – Rohit5k2 May 10 '19 at 06:56
  • 1
    might be related to https://stackoverflow.com/questions/52470044/warning-api-variant-getjavacompile-is-obsolete-and-has-been-replaced-with – M.Ricciuti May 10 '19 at 07:54
  • @M.Ricciuti I am not using fabric, as I said, I could not figure out from stacktrace what api is calling `variant.getAssemble()` – ghita May 10 '19 at 08:19
  • is it stopping the build ? – Manohar May 10 '19 at 08:47
  • @ManoharReddy, no it is just a warning, but I cannot configure firebase ( https://stackoverflow.com/questions/50191685/could-not-parse-the-android-application-modules-gradle-config ) and I understand that fixing that could solve the problem – ghita May 10 '19 at 14:15

1 Answers1

4

The Android Gradle plugin utilizes Task Providers and deprecated all direct task accesses. One such direct access is variant.getAssemble(). From your stacktrace it seems that the Gradle Play Publisher plugin is calling this API, but since the current version of the plugin is not written in Groovy anymore and already uses assembleProvider you should really update it!

tynn
  • 38,113
  • 8
  • 108
  • 143