Androidプラグインを2.3.3から3.0.1にアップグレードしたいと考えています。 Migration Guideに続くすべてのエラーを修正できました。私の問題は、Android Nougat(24)とAndroid Marshmallow(23)のアプリケーションアイコンがデフォルトのロボットアイコンに置き換えられたことです。3.0へのGradleプラグインアップデート後にアプリケーションアイコンが表示されない
問題の原因がわかりましたか。以前はアイコンが表示されていましたが、私は今なぜ論理的理由がないのか分かりません。
私はすべての提案を試みましたhere成功なし。ここで
は私のマニフェストファイルです。ここで
<!-- Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
...
<application
android:name="...Application"
android:allowBackup="false"
android:allowTaskReparenting="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/application"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/Theme.MyTheme"
tools:replace="android:icon,theme,label,allowBackup">
<uses-library android:name="com.google.android.maps" />
<activity
android:name="...SplashActivity"
android:label="@string/application"
android:theme="@style/Theme.Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
...
</application>
プロジェクトのGradleファイルです:
buildscript {
ext.kotlinVersion = '1.2.10'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
allprojects {
ext {
androidApplicationId = 'myapp.android'
androidVersionCode = 1
androidVersionName = "1.0"
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
}
repositories {
maven { url "https://maven.google.com" }
}
}
この値に対してリソースとして利用可能なものを確認しましたか 'ic_launcher_round' –
あなたの問題なくAndroidスタジオを更新しました。あなたのプロジェクトをきれいにする必要があります。 – salman
@AbdulWaheed私はアイコンをチェックし、彼らは期待どおり私のアプリのアイコンです。 –