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

Flutter conflict build android lib lifecycle-livedata-core-2.8.1-runtime.jar #449

Closed
gabulcw opened this issue Jul 31, 2024 · 8 comments
Closed
Assignees
Labels
crash Something is crashing platform-android Specific to Android platform support Asking for help writing an application

Comments

@gabulcw
Copy link

gabulcw commented Jul 31, 2024

When I try to build my application using Flutter 3.19.6 I receive this error.

I found a similar issue with React Native https://community.intercom.com/mobile-sdks-24/react-native-android-build-failed-rn-0-72-14-intercom-7-1-3-7398

image
@samnbd
Copy link

samnbd commented Aug 3, 2024

Same issue here

@fan123199
Copy link

fan123199 commented Aug 5, 2024

I fix this by updating agp version 7.3.0 to 8.3.0. And many related version update also.

@nikunj-p-7span
Copy link

Same issue here

@KirioXX
Copy link

KirioXX commented Aug 12, 2024

Hi,
I see a similar issue with android builds related to the intercom package.
These are the logs when I run flutter build apk -v
test_app_logs.txt

I also setup a test project her:
https://github.com/KirioXX/intercom_test_app
if you run:

flutter clean && flutter pub get && flutter build apk -v

you should see the same result

@deepak786
Copy link
Collaborator

You need to use AGP version 8. Please follow the below steps:

  • android/app/build.gradle
    Make sure to add the following under android section
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }
  • android/gradle/wrapper/gradle-wrapper.properties
    Update your distributionUrl
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
  • android/settings.gradle
id "com.android.application" version "8.1.4" apply false
id "org.jetbrains.kotlin.android" version "1.9.21" apply false

For ref see this commit: 6cd517b

@deepak786 deepak786 self-assigned this Aug 12, 2024
@deepak786 deepak786 added platform-android Specific to Android platform crash Something is crashing support Asking for help writing an application labels Aug 12, 2024
@samnbd
Copy link

samnbd commented Aug 13, 2024

I'm already using gradle 8.5 with Kotlin 1.9.21 using flutter_intercom 9.0.8 and It still crashes the app on release mode. It works fine on debug mode.
I'm using Flutter 3.22.3 btw...

@deepak786
Copy link
Collaborator

@samnbd

It still crashes the app on release mode

Is it not building in release mode using the above steps?

@deepak786
Copy link
Collaborator

Duplicate of #436

@deepak786 deepak786 marked this as a duplicate of #436 Aug 13, 2024
@deepak786 deepak786 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Something is crashing platform-android Specific to Android platform support Asking for help writing an application
Projects
None yet
Development

No branches or pull requests

6 participants