I was trying to set up firebase, which needed the package name of my current app, except when I went to the android manifest, I did not find the package name line, which shoud be in the second line, is that normal?
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="audio_inspect_app"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
</application>
Usually it’s :
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myapp">
<application ... >
...
</application>
Not sure what to do about this?
4
Answers
The package name is in your
gradle
file of your project, not in manifest.Please check your build.gradle file for package name. Here is the gradle file example
Package name and applicationId both are same.
is this a flutter project?. if so you can find it in the android =>app=>src=>build.gradle. Scroll down to the android tag. Namespace should be your package name. yes it’s normal I checked mine and got the same result as you.
Not having the
package
attribute in the manifest is not an issue. The documentation states,It can now be found in the gradle file. Once again the documentation states,