Android - 构建播放器时出错:CommandInvokationFailure:无法重新打包资源 [英] Android - Error building Player: CommandInvokationFailure: Failed to re-package resources
本文介绍了Android - 构建播放器时出错:CommandInvokationFailure:无法重新打包资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试为 android 构建我的游戏时出现此错误.但它成功构建到网络播放器.我检查一切正常,
有人认为最近我将我的 unity 升级到 4.5.1
I am getting this error when i try to build my game for android. But it successfully built to webplayer. i checked everything is right,
and one think recently i upgrade my unity to 4.5.1
错误详情是:
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:adt-bundle-windows-x86_64-20131030adt-bundle-windows-x86_64-20131030sdkuild-toolsandroid-4.4aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/adt-bundle-windows-x86_64-20131030/adt-bundle-windows-x86_64-20131030/sdk/platforms/android-18android.jar" -F bin/resources.ap_
stderr[
AndroidManifest.xml:9: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
]
stdout[
Configurations:
(default)
hdpi
ldpi
xhdpi
xxhdpi
Files:
drawableapp_icon.png
Src: () resdrawableapp_icon.png
Src: (hdpi) resdrawable-hdpiapp_icon.png
Src: (ldpi) resdrawable-ldpiapp_icon.png
Src: (xhdpi) resdrawable-xhdpiapp_icon.png
Src: (xxhdpi) resdrawable-xxhdpiapp_icon.png
valuesstrings.xml
Src: () resvaluesstrings.xml
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Type drawable
drawableapp_icon.png
Src: () resdrawableapp_icon.png
Src: (hdpi) resdrawable-hdpiapp_icon.png
Src: (ldpi) resdrawable-ldpiapp_icon.png
Src: (xhdpi) resdrawable-xhdpiapp_icon.png
Src: (xxhdpi) resdrawable-xxhdpiapp_icon.png
Type values
valuesstrings.xml
Src: () resvaluesstrings.xml
Including resources from package: D:adt-bundle-windows-x86_64-20131030adt-bundle-windows-x86_64-20131030sdkplatformsandroid-18android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: resdrawable-hdpiapp_icon.png
Processing image: resdrawableapp_icon.png
(processed image resdrawableapp_icon.png: 97% size of source)
Processing image: resdrawable-ldpiapp_icon.png
(processed image resdrawable-ldpiapp_icon.png: 98% size of source)
Processing image: resdrawable-xhdpiapp_icon.png
(processed image resdrawable-hdpiapp_icon.png: 98% size of source)
Processing image: resdrawable-xxhdpiapp_icon.png
(processed image resdrawable-xhdpiapp_icon.png: 98% size of source)
(processed image resdrawable-xxhdpiapp_icon.png: 98% size of source)
(new resource id app_icon from drawableapp_icon.png #generated)
(new resource id app_icon from hdpidrawableapp_icon.png #generated)
(new resource id app_icon from ldpidrawableapp_icon.png #generated)
(new resource id app_icon from xhdpidrawableapp_icon.png #generated)
(new resource id app_icon from xxhdpidrawableapp_icon.png #generated)
]
推荐答案
我从 Androidsdkuild-tools 中删除了 24.0.0 构建工具文件夹,它正在工作!
I deleted the 24.0.0 build tools folder from Androidsdkuild-tools and it's working !
这篇关于Android - 构建播放器时出错:CommandInvokationFailure:无法重新打包资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文