No resource identifier found for attribute ’roundIcon’ in package ‘android’

roundIcon is an attribute that was first introduced for Android Nougat 7.1 (API level 25), therefore you have two available options based on the type of device you’re targeting:

  • If you’re building an app specifically for Android 7.1 or above, ensure that minSdkVersion and targetSdkVersion are set to 25 in your app’s build.gradle:

defaultConfig {
    minSdkVersion 25
    targetSdkVersion 25
}

  • Alternatively, if you want to target older API levels, you will need to remove android:roundIcon from your manifest and only use android:icon.

Leave a Comment