facundomedica / fast_qr_reader_view

A Fast QR Reader widget for Flutter. For both Android and iOS
MIT License
294 stars 163 forks source link

Error building APK in release mode #30

Closed allanwolski closed 5 years ago

allanwolski commented 5 years ago

Execution failed for task ':fast_qr_reader_view:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed \build\fast_qr_reader_view\intermediates\res\merged\release\values\values.xml:276: error: resource android:attr/fontVariationSettings not found. \build\fast_qr_reader_view\intermediates\res\merged\release\values\values.xml:277: error: resource android:attr/ttcIndex not found. error: failed linking references.

thomasgarrison commented 5 years ago

I'm having this issue too

facundomedica commented 5 years ago

Have you tried using the library from the git repo instead of the pub?

allanwolski commented 5 years ago

The problem exists only in release mode with the git repository.

thomasgarrison commented 5 years ago

Same. I'm using the git repository and AndroidX

thomasgarrison commented 5 years ago

Got this fixed by changing the compileSdkVersion in the plugin's build.gradle from verison 27 to 28

allanwolski commented 5 years ago

I fixed this by creating a new Flutter project and moving my files.