Android Studio 3.6.
I want my app to be always in portrait
mode. So in my AndroidMainfest.xml
:
I found 2 way of solving this problem
First,
Android Studio -> Preferences (or settings in Windows)
-> search "chrome"
-> Uncheck "Activity is locked to an orientation"
-> apply and ok
-> Sync Project with Gradle flie
Second, `
Select "Run" from the main menu
-> Edit Configurations.
-> Launch options - Launch
-> select Nothing or Specified Activity
-> Sync Project with Gradle file