【发布时间】:2018-08-13 01:42:58
【问题描述】:
我一直在尝试将我的 APK 上传到 Play 商店,但它一直显示此错误:
无法运行 aapt dump badging: AndroidManifest.xml:31:错误:获取“android:icon”属性时出错:属性值引用不存在
这是一个非常简单的应用,这里是 Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mx.com.hearwego.mexicocityaudioguideapp">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
<activity
android:name=".MapsActivity"
android:label="@string/title_activity_maps" />
<activity
android:name=".PoiDetailActivity"
android:label="@string/title_activity_poi_detail"
android:theme="@style/AppTheme.NoActionBar" />
</application>
</manifest>
这里是@mipmap/ic_launcher:
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
当我运行应用程序时,它运行良好,我仍然可以完美地看到图标。此外,当我签署 APK 时,APK 也可以正常工作。问题出在上传到 Play 商店时。
有人可以帮我解决这个问题吗?
【问题讨论】:
-
您好,您找到解决方案了吗?谢谢!。
-
@javiazo 我做了,但这不是最好的解决方案。我正在使用两种语言的字符串文件。当我删除第二个并只使用一个时,问题就消失了。
标签: android apk aapt android-icons