You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build: Move package from android manifest to build files
This is an AGP version '8.0' breaking change that requires 'namespace'
in module-level build scripts, see build failure below:
------------------------------------------------------------------------
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create an instance of type
com.android.build.api.variant.impl.ApplicationVariantImpl.
> Namespace not specified. Please specify a namespace in the module's
build.gradle file like so:
android {
namespace 'com.example.namespace'
}
If the package attribute is specified in the source
AndroidManifest.xml, it can be migrated automatically to the
namespace value in the build.gradle file using the AGP Upgrade
Assistant; please refer to https://developer.android.com/studio/
build/agp-upgrade-assistant for more information.
------------------------------------------------------------------------
Explanation: "You must set the namespace in the module-level
'build.gradle.kts' file, rather than the manifest file."
For more info see: https://developer.android.com/build/releases/
gradle-plugin#namespace-dsl
0 commit comments