Using Android Studio 3.3 Canary 11 with the gradle plugin version 3.3.0-alpha11
. It throws the following error when trying to sync gradle
WARNI
For those who need to keep the Fabric plugin applied, the temporary solution is to go back to the previous version of the gradle at the project level.
Change the classpath version to com.android.tools.build:gradle:3.2.1
.
first of all this is not an error
it's warning
and its show up when update gradle to 3.3.0 Often occur because io.fabric so wait until the update fabric current version where warning is still show up is 'io.fabric.tools:gradle:1.27.1'
in application build.gradle , downgrade to this stable version of gradle :
classpath 'com.android.tools.build:gradle:3.2.1'
It happens after I updated Android Studio to 3.3 , temp solution until they fix it !
edit: you don't need to downgrade your android studio !
the issue-tracker might refer to "lazy task configuration" -
that's at least what task configuration avoidance suggests.
but one possibly can prevent the access to this obsolete method of BaseVariantImpl
, when variant.outputs.all
won't access that method (internally) - or when checks can prevent the access; or when accessing the variant by it's name; or somehow disable the external native build tasks for the variant. also see the single-variant project sync option, which rather seems related.
or wait for build-tools 3.3.0-alpha12
or 3.3.0-beta1
...this is not even a release candidate
, therefore investing to much time might be pointless - except using it to file another bug-report.
the new quick feedback button still looks the most promising.
Changing source compatibility in module build.gradle
file to Java 8 fixes the issue
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
Be sure to rebuild the project after adding those lines
Not sure what the actual issue is but commenting out the crashlytics related dependencies from the project solved issue.