Failed to resolve variable '${animal.sniffer.version}' when migrate to AndroidX

前端 未结 16 1166
轻奢々
轻奢々 2021-01-30 04:36

I\'m using Android Studio 3.2 Beta5 to migrate my project to AndroidX. When I rebuild my app I got these errors:

ERROR: [TA

16条回答
  •  野性不改
    2021-01-30 05:32

    Android version: 4.10.2

    I solved this issue with three simple steps: First i added below this in pubspec.yml: (with two spaces of identation)

    module:
      androidX: true 
    

    Adding this two lines below in gradle.properties, i have this in android/gradle.properties, in the project folder.

    android.useAndroidX=true
    android.enableJetifier=true
    

    And after this i wrote with the terminal:

    flutter clean
    

    Maybe you will have to stop the device and run again.

提交回复
热议问题