Skip to content

Conversation

MrSIHAB
Copy link

@MrSIHAB MrSIHAB commented Jun 16, 2025

The namespace field is required for modern AGP 7 support. It didn't work with the latest technology without the namespace field.

@vkhobor
Copy link

vkhobor commented Jul 30, 2025

I just encountered the error

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: /.pub-cache/hosted/pub.dev/quick_settings-1.0.1/android/build.gradle. 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.

And indeed this did fix it for me. Thanks.

@apalala-dev Maybe you could merge it if you have time, I don't know if the project is currently maintained, last change was a long ago.

@MrSIHAB
Copy link
Author

MrSIHAB commented Jul 31, 2025

You're welcome,

I submitted this pull request 1.5 months ago, and it still hasn't been merged. It seems the author is likely not maintaining it.

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

Successfully merging this pull request may close these issues.

2 participants