1. The purpose of this post
Sometimes, when you start a new android app, you would get this error:
2. Environments
- android studio 3.x
- minSdkVersion 16
- targetSdkVersion 29
3. The solution
Check your res/values/styles.xml, There is a style named ‘AppTheme’,Mine is:
Change it to:
Or you can navigate to this post for a solution.