I'm trying to compile my Project,but in there is some error
Android manifest.xml
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme">
I already try to rebuild project or sync with gradle but it's not working for me.
my dependencies
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile project(':circleimageview-2.0.0-sources')
How to fix this error? I'm newbie to Android Studio.
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:
minSdkVersion
and targetSdkVersion
are set to 25 in your app's build.gradle
:defaultConfig {
minSdkVersion 25
targetSdkVersion 25
}
android:roundIcon
from your manifest and only use android:icon
.I removed android:roundIcon
from my manifest, but when compiling my project with API 24, the android:roundIcon
property is still added to the AndroidManifest.xml
.
In order to resolve my problem, I had to update my API to version 25 and set comileSdkversion
to 25
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With