I changed my application launcher icon using Android Studio 3.0.1:
File -> Image Asset
In Android 8.1, the icon looks like below image:
My AndroidManifest
details
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:hardwareAccelerated="true"
android:supportsRtl="true"
android:theme="@style/AppTheme">
I double checked the icons.ic_launcher
and ic_launcher_round
are my new icons.
I solved my issue by changing
classpath 'com.android.tools.build:gradle:2.3.3'
to
classpath 'com.android.tools.build:gradle:3.0.1'
in project build-gradle
dependencies {
//classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
this will cause a flavoring issue ,that can be solved by adding
flavorDimensions "default"
in application build-gradle
android {
...
flavorDimensions "default"
defaultConfig {
}
}
this may help some one with same problem.