MY AGP is 8.1.4 and flutter version is 3.16.5 FAILURE: Build failed with an exception.
=> What went wrong: **A problem occurred configuring project ':flutter_inappwebview'. **> 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.
I want add package inappwebView to my app
What does this mean?
In newer versions of the Android Gradle Plugin and Gradle, the
namespacewas shifted from theAndroidManifest.xmltoapp/build.gradle. Generally, this means the following:In all three AndroidManifest.xml files (main, debug, profile), remove the
packageattribute:In
app/build.gradle, add this line:However, this requires all modules in your project to add the
namespace. It seems like your package does not have this attribute yet.How to fix this error?