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

Throws Errors on Android #560

Open
kq1231 opened this issue Jun 9, 2024 · 3 comments
Open

Throws Errors on Android #560

kq1231 opened this issue Jun 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@kq1231
Copy link

kq1231 commented Jun 9, 2024

After the package is installed using flutter pub add workmanager, the build process throws an error when compiling for Android.

FAILURE: Build failed with an exception.

A snippet is shown below:

  • What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.

Exception: Gradle task assembleDebug failed with exit code 1

@kq1231 kq1231 added the bug Something isn't working label Jun 9, 2024
@PrplYoru
Copy link

Cloning the github repo and referencing the local version in your pubspec.yaml instead of the server one seems to work, at least as a temporary solution until a new version is officially released.
A simple guide on how it's done can be found here

@milan-r-dhameliya
Copy link

I Was Facing same error cause kotlin-stdlib and kotlin-stdlib-jdk8 are conflicting in my case. So I Have Excluded Conflicting Transitive Dependencies Just Like This In my app/build.gradle and added below code worked for me.

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        if (details.requested.group == 'org.jetbrains.kotlin' && details.requested.name == 'kotlin-stdlib-jdk8') {
            details.useTarget 'org.jetbrains.kotlin:kotlin-stdlib:1.8.10'
        }
    }
}

@realnihal
Copy link

Thanks @milan-r-dhameliya this worked for me.

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