Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
475 views
in Technique[技术] by (71.8m points)

unity3d - Android - Error building Player: CommandInvokationFailure: Failed to re-package resources

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 details are:

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)
]
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I deleted the 24.0.0 build tools folder from Androidsdkuild-tools and it's working !


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...