TrangLeQuynh / flutter-upgrade-version

BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

With gradle 8 not working #32

Closed TheHypnoo closed 9 months ago

TheHypnoo commented 11 months ago

Hello, first of all a good job on this plugin.

It seems that Gradle 8 does not work with the plugin.

You should add the namespace so that it could work.

A problem occurred configuring project ':flutter_upgrade_version'. Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

PR: #33

TrangLeQuynh commented 10 months ago

Hello @TheHypnoo, thank you for your pull request. AGP 8.0 requires to specify a namespace in the module's build file. But This didn't work with < AGP 4.2. I have 2 comments on your request. Please check your pull request again.

TrangLeQuynh commented 10 months ago

@TheHypnoo I have published a new version (1.1.3) to fix this issue.

Android: Adds a namespace for compatibility with AGP 8.0

TheHypnoo commented 9 months ago

Thanks.