Yesterday I upgraded the Flutter SDK to 1.22. There was no problem during the test. There was an error when packing:
Execution failed for task ':janalytics:verifyReleaseResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > 1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed C: \ Users \ ccmai \. Gradle, caches, transforms - 2 \ \ c4f9ea9d3f7add2a25bd16931dcab94a \ core files - 2.1-1.1.0 / res/values/values. The XML: 1 42:5-173:25: AAPT: error: resource android:attr/fontVariati onSettings not found. C: \ Users \ ccmai \. Gradle, caches, transforms - 2 \ \ c4f9ea9d3f7add2a25bd16931dcab94a \ core files - 2.1-1.1.0 / res/values/values. The XML: 1 42:5-173:25: AAPT: error: resource android:attr/ttcIndex no t found.Copy the code
Janalytics is a plugin problem, check to see if the plugin reference compileSdkVersion is 27 and the project compileSdkVersion is 30, then synchronize the plugin version to the project compileSdkVersion and fix the problem