Unity3D编译错误:构建Player时出错:CommandInvokationFailure:无法重新打包资源。请参阅控制台了解详细信息

时间:2016-03-17 13:15:57

标签: android plugins unity3d compiler-errors

我在构建我的Android APK时遇到了问题。

我看到了一些同样错误的问题,但一切都与Google Play服务有关。

在我的情况下,我有相同的错误,但我自己的插件。来自Android Manifest.xml的错误,我需要知道如何解决它。

在某些论坛中,我会看到类似的解决方案;更新构建工具(我这样做) 并在AndroidManifest.xml中添加一些行....但这些行是Google Play服务...我必须重写我自己的插件。

有什么想法吗?

我粘贴错误和其他解决方案供参考;

http://answers.unity3d.com/questions/834744/building-android-application-failed-re-package-res.html

错误输出:

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\ppalma\AppData\Local\Android\sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/ppalma/AppData/Local/Android/sdk/platforms/android-23\android.jar" -F bin/resources.ap_

stderr[
AndroidManifest.xml:7: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Holo.Light.DarkActionBar').

]
stdout[
Configurations:
 (default)

Files:
  drawable\app_icon.png
    Src: () res\drawable\app_icon.png
  values\strings.xml
    Src: () res\values\strings.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
  Type drawable
    drawable\app_icon.png
      Src: () res\drawable\app_icon.png
  Type values
    values\strings.xml
      Src: () res\values\strings.xml
Including resources from package: C:\Users\ppalma\AppData\Local\Android\sdk\platforms\android-23\android.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: res\drawable\app_icon.png
    (processed image res\drawable\app_icon.png: 90% size of source)
    (new resource id app_icon from drawable\app_icon.png #generated)
]

0 个答案:

没有答案