Skip to content

fix: Update Android Gradle configuration for modern Flutter compatibility#19

Open
shinriyo wants to merge 1 commit into
hautvfami:mainfrom
shinriyo:fix/android-gradle-update
Open

fix: Update Android Gradle configuration for modern Flutter compatibility#19
shinriyo wants to merge 1 commit into
hautvfami:mainfrom
shinriyo:fix/android-gradle-update

Conversation

@shinriyo

Copy link
Copy Markdown

Summary

This PR updates the Android Gradle configuration in the example project to resolve build issues with modern Flutter and Android toolchain.

Changes Made

  • Update Android Gradle Plugin from 7.1.2 to 8.2.1
  • Update Gradle Wrapper from 8.6 to 8.4 for compatibility
  • Update compileSdkVersion to 35 and targetSdkVersion to 34
  • Add namespace declaration for AGP 8.x compatibility
  • Add android:exported attribute to MainActivity
  • Update minSdkVersion to 26 for better network debugging
  • Migrate to declarative plugin application method
  • Update test dependencies to AndroidX
  • Set Java/Kotlin compatibility to version 17

Issues Fixed

  • Resolves Gradle build failures with modern Flutter
  • Fixes Java 21 compatibility issues
  • Addresses Android 12+ exported activity requirements
  • Updates deprecated plugin application methods

Testing

  • Build now completes successfully
  • Compatible with modern Android development tools
  • Maintains backward compatibility with existing functionality

…lity

- Update Android Gradle Plugin from 7.1.2 to 8.2.1
- Update Gradle Wrapper from 8.6 to 8.4 for compatibility
- Update compileSdkVersion to 35 and targetSdkVersion to 34
- Add namespace declaration for AGP 8.x compatibility
- Add android:exported attribute to MainActivity
- Update minSdkVersion to 26 for better network debugging
- Migrate to declarative plugin application method
- Update test dependencies to AndroidX
- Set Java/Kotlin compatibility to version 17

Fixes build issues with modern Flutter and Android toolchain.
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.

1 participant