No resource identifier found for attribute 'roundIcon' in package 'android'

后端 未结 4 1693
自闭症患者
自闭症患者 2020-12-03 06:51

I\'m trying to compile my Project,but in there is some error

Android manifest.xml

 

        
4条回答
  •  渐次进展
    2020-12-03 07:44

    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.

提交回复
热议问题