- SDK Version: ^48.0.12
- Platforms(Android/iOS/web/all): Android
- react-native Version: 0.71.7
I am getting the following error when trying to run expo run:android :
CommandError: Couldn't open Android app with activity "com.company.se.customer/.MainActivity" on device "Pixel_2_API_33"
What I tried to solve the problem:
- Invalidating every cache I could think of
- Running ./gradlew clean
- Uninstalling the app then clean and expo run:android
- Wipe data on emulator then clean and run
Here is my MainActivity from the android manifest if it helps:
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait"
android:theme="@style/Theme.App.SplashScreen"
android:launchMode="singleTask"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>