Skip to content

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

@karkolia

Description

@karkolia

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions