

Since then it complains 'Cannot resolve symbol' for Theme and ThemeOverlay in the following lines of code.Īpp runs fine but they are marked in RED in the file.īuild. In the manifest.xml file, add application theme to the newly created Custom theme.I updated my android studio to latest version - 3.0.1. It’ll be the theme of your home screen.ģ. Since then it complains Cannot resolve symbol for Theme and ThemeOverlay in the following lines of. The recommended duration for app icon animation is that it shouldn’t exceed 1000 milliseconds.Īndroid:postSplashScreenTheme specifies the theme of the activity that follows the splash screen immediately. I updated my android studio to latest version - 3.0.1. This specifies how long the animation should be shown on the screen. android: windowSplashScreenAnimationDuration needs to be mentioned for the drawable which is animated. Then override themes.xml for version 31 and specify android:windowSplashScreenBackground to specify background colour.Īndroid:windowSplashScreenAnimatedIcon specifies the static or animated drawable. So the system will notify you of the same if your current minSdk version is less than 31. If you’re not using support library of splash screen, replace windowBackground with windowSplashScreenBackground for versions above 12.

Which specifies solid colour for window background.

The android:windowSplashScreenBackground is a replacement for windowBackground in higher versions. I encountered this after updating to Android Studio 3.1. Theme.CustomSplashScreenTheme is the new theme we created for the splash screen. Another solution that worked for me with Android Studio 3.1.2: delete these from adle if you have them: :appcompat-v7:27.1.1 :design:27.1.1 then sync, then undo delete, then sync again.

The system will automatically create one for you. With this API, you don’t need to create a separate activity to customise the splash screen. Android 12 introduced a new SplashScreen API.
