ghita
ghita

Reputation: 2806

API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'

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

Upvotes: 1

Views: 2459

Answers (1)

tynn
tynn

Reputation: 39853

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!

Upvotes: 4

Related Questions