flutter_html_to_pdf icon indicating copy to clipboard operation
flutter_html_to_pdf copied to clipboard

missing namespace Error building

Open matteoberla opened this issue 1 year ago • 2 comments

A problem occurred configuring project ':flutter_html_to_pdf'.

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.

matteoberla avatar Mar 07 '25 09:03 matteoberla

I am also facing the same issue. Is there any way to solve this issue?

Topiya avatar Nov 21 '25 07:11 Topiya

Thanks for reporting this! I’ve opened a pull request to fix the build error: #99. It adds the missing namespace to the Android module’s build.gradle file, which resolves the AGP configuration issue. Feel free to check it out and let me know how it works for you. Thanks!

webbrain-one avatar Aug 03 '26 00:08 webbrain-one