Dieguinho
Dieguinho

Reputation: 788

Android Studio AGP upgrade assistant wants to upgrade to same version

I've been tasked to upgrade android existing project code to new version cause its failing to build. In the build error it states:

Gradle sync failed: 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. (1 s 677 ms)

but when doing the steps above, the assistant shows the following:

enter image description here

whith no option in the dropdown besides the 7.2.1 any ideas on how to fix this?

Upvotes: 1

Views: 7036

Answers (1)

Jay
Jay

Reputation: 157

Remove package element from manifest and insert it into build.gradle(:app) as namespace:

android { ... ... namespace 'your.package.name' }

Upvotes: 0

Related Questions