Skip to content
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

Unable to build release #12

Open
ghost opened this issue Dec 16, 2019 · 7 comments
Open

Unable to build release #12

ghost opened this issue Dec 16, 2019 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 16, 2019

When running on release mode, I get a build error:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_appavailability:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  C:\Users\hugoc\IdeaProjects\Flutter\buster\build\flutter_appavailability\intermediates\res\merged\release\values\values.xml:236: error: resource android:attr/fontVariationSettings not found.
  C:\Users\hugoc\IdeaProjects\Flutter\buster\build\flutter_appavailability\intermediates\res\merged\release\values\values.xml:237: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

This error can be reproduced in any project. Just add the dependency and try to run on release mode or build an apk/app-bundle.

Don't know whether iOS has been affected, since I just tested on Android.

I started to encounter this error as soon as I updated Flutter to v1.12.13+hotfix.5. Previously, I was using Flutter v1.9.1+hotfix.6.

@while-loop
Copy link

I changed to use https://github.com/bwhiteTP/flutter_appavailability 's target version fix

  flutter_appavailability:
    git:
      url: "https://github.com/bwhiteTP/flutter_appavailability.git"
      ref: "26461d5296cd8c0a58da1d9c5f1e960643ebb323"

@xni06
Copy link

xni06 commented Dec 26, 2019

I changed to use https://github.com/bwhiteTP/flutter_appavailability 's target version fix

  flutter_appavailability:
    git:
      url: "https://github.com/bwhiteTP/flutter_appavailability.git"
      ref: "26461d5296cd8c0a58da1d9c5f1e960643ebb323"

or you can reference the existing pull request a9e2fa3 in this repo by using the following instead:

  flutter_appavailability:
    git:
      url: "https://github.com/pichillilorenzo/flutter_appavailability.git"
      ref: "a9e2fa38d8c9334c89d13c69c69db29030c926d5"

@jeroen-meijer
Copy link

jeroen-meijer commented Jan 14, 2020

Same issue here, this really needs to be fixed.

Until this is fixed, I recommend using device_apps in the meantime. Sadly, however, that plugin does not support iOS.

@jeroen-meijer
Copy link

Thanks @rhisiart-cufflink, I've edited my comment. 👍🏻

@pankti16
Copy link

Same issue.

@eltonmorais
Copy link

eltonmorais commented May 2, 2020

I changed to use https://github.com/bwhiteTP/flutter_appavailability 's target version fix

  flutter_appavailability:
    git:
      url: "https://github.com/bwhiteTP/flutter_appavailability.git"
      ref: "26461d5296cd8c0a58da1d9c5f1e960643ebb323"

This solved here. Flutter v1.12.13+hotfix.9

@BrutalCoding
Copy link

Same issue here, this really needs to be fixed.

Until this is fixed, I recommend using device_apps in the meantime. Sadly, however, that plugin does not support iOS.

Thanks maat, that's what I needed to know 👍

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

6 participants