Skip to content

Build fails due to AndroidX incompatibility #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DrStefanFriedrich opened this issue May 30, 2021 · 0 comments
Open

Build fails due to AndroidX incompatibility #5

DrStefanFriedrich opened this issue May 30, 2021 · 0 comments

Comments

@DrStefanFriedrich
Copy link

I am using the following dependency in my Flutter project:

dependencies:
  wechat: ^0.0.5

When I compile it in debug mode, everything is fine. When I try to compile it in release mode, I get

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':wechat:verifyReleaseResources'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

   > Android resource linking failed

     /home/stefan/.gradle/caches/transforms-2/files-2.1/00396a068dc8abe4c6a94fd2289b8767/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.
     /home/stefan/.gradle/caches/transforms-2/files-2.1/00396a068dc8abe4c6a94fd2289b8767/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not found.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 14s
Running Gradle task 'assembleRelease'...                           75.4s
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.

The last line in the error message suggest that the WeChat plugin is not AndroidX ready.

https://flutter.dev/docs/development/androidx-migration

Would you please convert the plugin to AndroidX and build a new release, 0.0.6?

All you have to do is add these two lines

android.useAndroidX=true
android.enableJetifier=true

to android/gradle.properties.

I would appreciate it very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant