android:icon错误,关于上载:错误获取“ android:icon”属性:将apk上载到playstore时属性不是字符串值...

我已经收到该消息:

f1ecb51e714c9fb7bb6112a4ff940740.png

我的AndroidManifest:

package="..."

android:versionCode="1"

android:versionName="1.0">

android:glEsVersion="0x00020000"

android:required="true">

android:minSdkVersion="10"

android:targetSdkVersion="21" />

android:required="true" />

android:name="..."

android:allowBackup="true"

android:hardwareAccelerated="true"

android:label="@string/app_name"

android:icon="@drawable/launcher"

android:largeHeap="true"

android:theme="@style/AppTheme">

android:name="..."

android:label="@string/app_name"

android:screenOrientation="portrait"

android:theme="@android:style/Theme.NoTitleBar">

android:name="..."

android:label="@string/label_add_new_object"

android:screenOrientation="portrait"

android:icon="@drawable/ic_arrow"

android:theme="@style/MyFancyTheme"

android:configChanges="orientation|screenSize">

android:name="..."

android:label="@string/label_settings_activity"

android:screenOrientation="portrait"

android:icon="@drawable/ic_arrow"

android:theme="@style/Theme.AppCompat.Light"

>

android:name="..."

android:screenOrientation="portrait"

android:label="@string/app_name"

android:icon="@android:color/transparent"

android:theme="@style/CustomActionBarStyle">

android:resource="@xml/searchable" />

正如我在这里,这里和这里所读的,我已经完成了:

1)将所有可绘制对象从@ android / drawable复制到我相应的文件夹hdpi,mdpi等-

所以我在项目中的@ android / drawable文件夹中没有任何图标

2)把图标drawable到res的drawable文件夹

3)清理项目

有什么解决方案?

我找到了解决方案-它在

....

android:icon="@android:color/transparent" - the problem string

...

当我删除该字符串时,一切都工作正常

我认为这与将图标属性设置设置为颜色@android:color / transparent有关。 也许尝试使用透明的可绘制对象而不是颜色。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值