Closed MustafaAhmed20 closed 3 months ago
Hey, thanks for the detailed report 💙 Unfortunately, I am about to travel for vacation, so I won't have time to take a look at this, but I'll make sure to prioritize it afterward. It would be really useful for me if you would provide a whole repository for me where you can reproduce the error. I predict this is something due to new versions, which might not have effect on my quite old setup.
If you find a workaround, or some details, please post it here - it would be super useful! Sorry for the inconvenience.
Hi there! Happy vacation man, I hope you enjoy it.
I've created a repository for you with the sample code. I will keep the project on my machine so if you need me to help in any way it will be my pleasure.
Cheers!
Hi again!
I've noticed (understandably very late) that my Flutter channel is "Master" not Stable. And the current version is 3.24.0-1.0.pre.221
.
After I switched back to stable version 3.22.3
everything seems fine!
So the problem may appear later when flutter team release 3.24.0
version, But for now everything seems OK.
I am terribly sorry for the inconvenience I've caused😌. Cheers!
I have the same problem on 3.24.0
Same problem with 3.24.0
Thank you all for reporting the issue 💙
Seems like it was an easy fix, just bumping Android compile SDK version. Fix (provided via #41 🫡) is released as 2.2.1. Please upgrade and report if this was not enough.
Same issue causing with "flutter_barcode_scanner" this plugin ,
@ilyasarafath see this for the solution
Yep, you can override compileSdk
for plugins that did not update.
Seems like this issue is resolved. Let me close it to avoid unnecessary comments.
Thanks 💙
Using: charset_converter: ^2.2.1
I got this error when Build APK
Upgrading build.gradle in Android directoty fixed the issue.
Full content of the file of my configuration: https://pastebin.com/2AQ3rcgR
I added this part `subprojects { afterEvaluate { project -> if (project.hasProperty("android")) { project.android { compileSdkVersion 34 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 //compileSdkVersion 34 } }
project.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
}
}`
I added the "subprojects" part to force charset_converter to use 1.8 version like other packages, it seems it use the old 1.7 when build your package or do not use sdk 34 by default. I am not sure. But it should be the compatibility issue. Correct me if I am wrong
Works perfectly now. With latest 3.24.1 If someone need all configuration files, I posted here https://github.com/amake/flutter_charset_detector/issues/9#issuecomment-2309795010
When adding the package
charset_converter: ^2.2.0
to a new flutter project. Theflutter run
works butflutter build apk
doesn'tflutter doctor
app/build.gradle
settings.gradle