0

In location: android/app/src/androidmanifest.xml we usually and according to documentation find package name of our project. But i can't find it there. How can i get my app package name?

<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:allowBackup="false"
      android:theme="@style/AppTheme">
      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
        android:launchMode="singleTask"
        android:windowSoftInputMode="adjustResize"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>
    </application>
</manifest>

I also opened androidmanifest.xml file in android studio but still i can't find my project package name. Don't know where to find now. Some Youtube tutorials say some lines of code line in this file are hidden when can be seen in android studio but still no solution.

James Z
  • 12,209
  • 10
  • 24
  • 44
supolaris
  • 23
  • 7

1 Answers1

-1

Note that the Android package name in a React Native CLI project is usually set when you create a new project using the react-native init command. If you need to change the Android package name, you can do so by modifying the package attribute in the AndroidManifest.xml file, as well as in the build.gradle file located at android/app/build.gradle. Look for the applicationId field under the defaultConfig block. This is your Android package name.