You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix flutter Gradle fails with native android plugins when using the latest version of gradle
Fix flutter Gradle fails with native android plugins when using the latest version of gradle
The issue is, when you use Flutter plugins that didn't update thier android gradle to 8.0 or later
and if you use gradle 8.0 or above, the build will faield since gradle 8.0 require the package name
as property in android block in build.gradle called namespace instead of AndroidManifest.xml
so you should remove package attribute from AndroidManifest.xml
and define it in build.gradle, in order to upgrade to Android gradle 8.0 plugin with gradle 8.0 or above
but if you use plugins that didn't do those changes, the build will failed, also the latest version of android studio
have Java jdk 17, so all new projects should target that version, but android old apis don't support that