Skip to content

Conversation

@samirsimnica
Copy link

@samirsimnica samirsimnica commented Sep 12, 2025

Problem

Building projects with Agora Flutter SDK fails when using Android API 34 due to iris_method_channel being compiled against API 31 while its dependencies require API 34+.

Error: Dependency 'androidx.fragment:fragment:1.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :iris_method_channel is currently compiled against android-31.

Solution

Updated the default compileSdkVersion from 31 to 34 in the iris_method_channel build configuration to ensure compatibility with modern Android dependencies.

Testing

  • Verified the issue exists - Build fails with exact error message shown above
  • Confirmed backward compatibility maintained through safeExtGet mechanism
  • No breaking changes to existing functionality expected
  • Follows standard Flutter plugin practices for Android API updates

Notes

This fix specifically addresses the checkDebugAarMetadata task failure related to agora_rtc_engine and Android API 34 compatibility. The change is minimal and follows established patterns for Flutter plugin Android compatibility updates.

…4 compatibility

- Resolves build failures with Android API 34 dependencies
- Fixes checkReleaseAarMetadata task failures for iris_method_channel
- Ensures compatibility with androidx dependencies requiring API 34+
- Addresses issues with androidx.fragment, androidx.window, and other dependencies
- Maintains backward compatibility through safeExtGet fallback mechanism

Fixes: Build failures when using Agora Flutter SDK with Android API 34
@franco-conroo
Copy link

When can we expect this to land since it is a blocking issue and required by 1st of November?

@ragavendranbala-TSL
Copy link

Same here. Kindly approve this PR soon @samiri32 , please assign this to @ZGaopeng , as reviewer

@samirsimnica
Copy link
Author

samirsimnica commented Sep 18, 2025

@ragavendranbala-TSL can't really assign anyone to review as I don't have the permissions :D, also waiting for someone from the team to check this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants