-
Notifications
You must be signed in to change notification settings - Fork 140
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
Android: build issue with 9.0.5 or later #436
Comments
I see errors only with these 2:
|
I have both. |
Getting the same error. Have locked the version as of now. |
I'm trying to support both platormrs and am stuck having to use 9.0.4 for Android and 9.0.6 for iOS. |
Could you please test the example app and see if it is running fine? |
Tested the example app, it works. I found the problem. We have to update the Gradle version to the same version in the example app. Closing the issue now |
@kevin-do-zimplistic what file/files did you update? |
The gradle-wrapper.properties file, 2 build.gradle files. And depend on your current packages, you have to upgrade the packages in pubspec.yaml to latest version as well. |
@kevin-do-zimplistic Thank you. |
Same here, we've been blocked with a major release for 4 days now, so it was at a very high business cost... Once the fix is out, it might be nice to add some tests to be sure such issues don't occur again? But glad a solution is on its way 🙏! |
Any luck with this situation? |
Is using gradle 8.5 safe solution since below Flutter doc states that supported gradle version goes up to 7.6.1 ? https://docs.flutter.dev/release/breaking-changes/android-java-gradle-migration-guide |
Personally I run it fine. I don't think that doc states that "supported gradle version goes up to 7.6.1". What it said is that if we use Gradle version > 7.6.1, we may have to change the Android file structure. |
I already posted my solution. Doesn't it work for you? |
Yes but actually, it means all builds will fail for most people using Intercom. No one knows the failing builds comes from Intercom. So if, by chance, people find this issue with a Google / Github search, and use the solution, that's nice. But a fix would really be needed for all other users, who'll have no more Android builds because they didn't get that link 😅 |
Dear intercom_flutter dev team, wtf?!? Why such change not mentioned in changelog??? |
Hope this helps anyone: Solution for me was disabling R8 full mode with what is full mode?
More here: https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#r8-full-mode credits to this legend: https://stackoverflow.com/a/77494491/12190210 🎉 |
You need to use AGP version 8. Please follow the below steps:
For ref see this commit: 6cd517b |
Repening as other users are facing the similar issues |
It seems that Intercom Android SDK v15.9.0 has some dependency updates. So it requires AGP 8. As it is the same issue with react native version also https://community.intercom.com/mobile-sdks-24/react-native-android-build-failed-rn-0-72-14-intercom-7-1-3-7398
|
I have the same issue and i'm unable to compile the app for Android. |
I have the same issue here. I use Flutter 3.19.6 |
Check this comment #436 (comment) |
Like title say, I couldn't run Android when upgrade to the latest version. The previous one (9.0.4) run fine so I think it's the problem with Intercom 15.9.0 Android sdk.
But the weird thing is: I created a new Android native project and used Intercom 15.9.0 sdk. It runs completely fine. Maybe it's a problem on your configuration or I have to change some setting in my build.gradle file?
Anyway, here's the error. Thanks in advance
The text was updated successfully, but these errors were encountered: