hms-flutter-plugin icon indicating copy to clipboard operation
hms-flutter-plugin copied to clipboard

Gradle update - Namespace not specified in build.gradle

Open karkolia opened this issue 7 months ago • 4 comments

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

  • Platform: [Flutter]
  • Kit: [Location]
  • Kit Version [6.12.0+302]
  • OS Version [Android xx]

karkolia avatar Jul 11 '24 08:07 karkolia