Android启动器图标仍显示Android Oreo中的默认设置 [英] Android launcher icon still showing default in Android oreo
本文介绍了Android启动器图标仍显示Android Oreo中的默认设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用android studio 3.0.1
File -> Image Asset
Android version 8.1
中的图标看起来像下面的图像
In Android version 8.1
icon looks like below image
我的AndroidManifest
详细信息
<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">
我仔细检查了图标.ic_launcher
和ic_launcher_round
是我的新图标
I double checked the icons.ic_launcher
and ic_launcher_round
are my new icons
感谢所有帮助,
推荐答案
我通过更改
classpath 'com.android.tools.build:gradle:2.3.3'
到
classpath 'com.android.tools.build:gradle:3.0.1'
在项目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默认"
flavorDimensions "default"
在应用程序build-gradle
android {
...
flavorDimensions "default"
defaultConfig {
}
}
这可能会帮助某些遇到相同问题的人.
this may help some one with same problem.
这篇关于Android启动器图标仍显示Android Oreo中的默认设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文