我有一个Compile Error告诉我从AndroidManifest.xml中删除android:roundIcon,类似于另一个帖子:No resource identifier found for attribute 'roundIcon' in package 'android'
我的目标是API 15,并且只安装了该版本,但是Android Studio不断地重新添加该行并破坏编译。如何停止/修复此问题?
我的build.gradle有:
minSdkVersion 15
targetSdkVersion 15AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.testapplication"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" />
<application
android:allowBackup="true"
android:debuggable="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity android:name="com.example.testapplication.MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>如果我删除它,它只会不断地重新添加android:roundIcon="@mipmap/ic_launcher_round"。我该如何阻止这种行为呢?
谢谢。
发布于 2018-07-22 16:51:33
只需删除圆形图标的所有"@mipmap/ic_launcher“即可。你就完了。此外,如果它不能解决,尝试添加你自己的图标,使用图像资源,并将其设置为"ic_launcher“图标。
https://stackoverflow.com/questions/51463377
复制相似问题