'Package is not specified in the manifest file

While trying to create and Extract string from the layout file it is showing the alert dialog that Package is not specified in the manifest file. It is happening from while I had updated my studio to the newest version(chimpunk 2021.2.1) and the newest gradle(7.2). any help will be appretiated.



Solution 1:[1]

I had the same problem. Open AndroidManifest.xml and add your package name back.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
  package="YOUR_PACKAGE_NAME"> <!--This is what I added-->

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Shein Arcium