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

Incompatibility version update needed js ^0.7.1 #738

Open
zakblacki opened this issue May 3, 2024 · 4 comments
Open

Incompatibility version update needed js ^0.7.1 #738

zakblacki opened this issue May 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@zakblacki
Copy link

Because qr_code_scanner 1.0.1 depends on js ^0.6.3 and syncfusion_pdfviewer_web >=24.2.9 depends on js ^0.7.1, qr_code_scanner 1.0.1 is incompatible with syncfusion_pdfviewer_web >=24.2.9.
And because syncfusion_flutter_pdfviewer >=25.1.42 depends on syncfusion_pdfviewer_web ^25.1.42, qr_code_scanner 1.0.1 is incompatible with syncfusion_flutter_pdfviewer >=25.1.42.
So, because project depends on both syncfusion_flutter_pdfviewer ^25.1.42 and qr_code_scanner 1.0.1, version solving failed.

@zakblacki zakblacki added the bug Something isn't working label May 3, 2024
@AbhiAppBuddy
Copy link

same issue...

@fadihere fadihere mentioned this issue May 15, 2024
2 tasks
@merterkoc
Copy link

merterkoc commented May 27, 2024

I think we should merge this

@tanvi12
Copy link

tanvi12 commented Jul 14, 2024

When will this issue be resolved? @merterkoc

@zakblacki
Copy link
Author

zakblacki commented Aug 10, 2024

I'm now able to build with

compileSdkVersion 34
targetSdkVersion 34
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip

Workaround found, add this to you android\build.gradle

`subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    afterEvaluate {
        // check if android block is available
        if (it.hasProperty('android')) {
            if (it.android.namespace == null) {
                def manifest = new XmlSlurper().parse(file(it.android.sourceSets.main.manifest.srcFile))
                def packageName = [email protected]()
                println("Setting ${packageName} as android namespace")
                android.namespace = packageName
            }
            def javaVersion = JavaVersion.VERSION_17
            android {
                def androidApiVersion = 34
                compileSdkVersion androidApiVersion
                defaultConfig {
                    targetSdkVersion androidApiVersion
                }
                compileOptions {
                    sourceCompatibility javaVersion
                    targetCompatibility javaVersion
                }
                tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
                    kotlinOptions {
                        jvmTarget = javaVersion.toString()
                    }
                }
//                println("Setting java version to ${javaVersion.toString()} which is $javaVersion")
//                println("Setting compileSdkVersion and targetSdkVersion to $androidApiVersion")
            }
        }
    }
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants