No such property: scope for class: com.android.build.gradle.internal.variant.ApplicationVariantData

后端 未结 9 2205
误落风尘
误落风尘 2020-12-30 18:26

After updating to Android Studio 4 I got this error: A problem occurred configuring project \':app\'.

groovy.lang.MissingPropertyException: No such pr

9条回答
  •  Happy的楠姐
    2020-12-30 19:12

    I am using Fabrics Crashlytics and i got the same error after updating my Android plugin for Gradle to version 4.1:

    classpath 'com.android.tools.build:gradle:4.1.0-rc01'
    

    I need to upgrade gradle plugin to upload native debug symbols to Google play console as stated in this link. https://developer.android.com/studio/preview/features#native-crash-symbolization

    To use Android plugin for gradle version 4.1, your minimum gradle version needs to be version 6.5. I used gradle version 6.5.1

    distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
    

    Upgrading from Fabric Crashlytics to Firebase Crashlytics solved the issue for me, this could be because fabric is not compatible with the newer versions of Android plugin for gradle. For more information on how to upgrade from Fabric crashlytics to Firebase Crashlytics. Check out this link https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=android

提交回复
热议问题