Use androidx for back compatibility instead of Support Library #71
Comments
@victoraldir I merged this PR but once I went to use it I'm now having build issues. I'm going to be doing some work next week to figure out what is going on. I'm holding off on publishing this until I can figure that out. |
@matthewtsmith Sorry to hear that. I will check it out and come up with something. What problem are you facing? Can you paste the stack here? |
yeah same thing happened after i update it to sdk 28. gradle task 'assembleDebug'... FAILURE: Build failed with an exception.
|
Master branch works fine, you can push it to pub |
Hi, any update regarding this? |
@sleith u can try the pull branch for android X support. It work perfectly here |
I needed to add those settings for flutter/flutter#28155 :
But now it's
|
1Go to your dependences and add this just for temporary we are waiting to have a new release |
Any idea when they are releasing the fix? |
Same issue with API 28 and androidx and barcode_scan. |
I resolved this issue. |
Complete changes to make, so as to prevent your app from breaking 1a) Change your Gradle version to 3.2.1
1b) Update your gradle to the latest version by changing the distribution URL in "gradle-wrapper.properties"
For example, you could have the following dependencies in your "build.gradle" file
You should replace this with:
Make these changes as @kendji suggested
|
Published 1.0 to pub with this fix |
@matthewtsmith please update the README.md docs. it still says
|
@matthewtsmith . Also does the latest version support AndroidX, if so please add the relevant guidelines to the README.md, if it doesn't please still state it, because it might conflict with other libraries. |
Also shouldn't we update to the latest |
I'd also add, in your
and
|
Using flutter Using barcode_scan: 1.0.0 Add the camera permission to your ./android/app/profile/AndroidManifest.xml
Add the BarcodeScanner activity to your ./android/app/main/AndroidManifest.xml. Do NOT modify the name.
This plugin is written in Kotlin. Therefore, you need to add Kotlin support to your project. See installing the Kotlin plugin. Edit your project-level ./android/build.gradle file to look like this:
Exlude this step Edit your app-level build.gradle file to look like this:
And work for me. |
THIS IS awesome solution....for me it's WORKS.. thanks |
Folks, I experienced a problem when updating cloud_firestore to version 0.9.0
The update requires libraries like androidx.annotation to work.
When I enabled androidx in my project, BarcodeScannerActivity.kt started failing to build because dependencies like
I migrated the project from Support Library to Androidx and I referencing to this issue for further discussion
The text was updated successfully, but these errors were encountered: