unity3d导入jar包发布出现错误No resource found that matches the given name 'Theme.AppCompat.Light'.

在使用Unity3d导入jar包并发布时遇到问题,错误提示为'No resource found that matches the given name 'Theme.AppCompat.Light''. 解决方案包括:确保在创建Android工程时,Minimum Required SDK设置为Android4.0或更高版本,或者参考提供的百度贴吧链接进行解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\sdk\build-tools\android-4.3\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/adt-bundle-windows-x86_64-20130729/adt-bundle-windows-x86_64-20130729/sdk/platforms/android-19\android.jar" -F bin/resources.ap_

stderr[
res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
]
stdout[
Configurations:
 (default)
 v11
 v14
 hdpi
 mdpi
 xhdpi
 xxhdpi

 w820dp


这是升级后出现的新主题,两种方法更改

1:创建android工程时 Minimum Required SDK选择为Android4.0或以上

2:http://tieba.baidu.com/p/3147767224

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值