HMS-Core / hms-flutter-plugin

This repo contains all of Flutter HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
285 stars 142 forks source link

Gradle update - Namespace not specified in build.gradle #379

Open karkolia opened 3 months ago

karkolia commented 3 months ago

Description The namespace gradle field is not specified in build.gradle so this library is not compatible with new version of gradle.

Expected behavior The namespace should be specified as described here : https://d.android.com/r/tools/upgrade-assistant/set-namespace

Current behavior When compiling after doing the AGP migration, the gradlew execution fails with the message you can see down here.

Logs A problem occurred configuring project ':huawei_location'.

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.

 If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

Environment

karkolia commented 3 months ago

This issue is also there for huawei_map.

farisshomali commented 2 months ago

@karkolia Did you find a solution ?

alestiago commented 2 months ago

I might be able to take care of this issue, @ozkulbeng may I get assigned?

HisashiOne commented 3 days ago

Any status on how to resolve this issue? @ozkulbeng Thanks