Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karkolia opened this issue Jul 11, 2024 · 8 comments
Open

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

karkolia opened this issue Jul 11, 2024 · 8 comments

Comments

@karkolia
Copy link

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
Copy link
Author

This issue is also there for huawei_map.

@farisshomali
Copy link

@karkolia Did you find a solution ?

@alestiago
Copy link

alestiago commented Aug 2, 2024

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

@HisashiOne
Copy link

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

@husainazkas
Copy link

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

if so, would you start first by fork this repo then create a PR?

hope someone would do this, thanks in advance.

@husainazkas
Copy link

husainazkas commented Nov 1, 2024

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

@karkolia Did you find a solution ?

see my comment. this issue is a simple thing, just need a little update on build.gradle of the package

@deakjahn
Copy link

deakjahn commented Nov 2, 2024

And _ads, and _iap, and _location — and the list goes on. A single line added to each, why is it so complicated that you cannot add them for half a year? Really?

@EArminjon
Copy link

EArminjon commented Nov 15, 2024

#397

Usage example until merge

  # From 6.12.0+303 https://github.com/HMS-Core/hms-flutter-plugin/pull/397
  huawei_location:
    git:
      url: https://github.com/HMS-Core/hms-flutter-plugin
      path: flutter-hms-location
      ref: 9d47f5aaa11d4474b37b83e42d073f05ebaa2e24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants