2017-05-01 41 views
0

當我嘗試構建我的項目時,它不會生成,並且出現錯誤。我如何解決它?Unity3d(無法重新打包資源)

CommandInvokationFailure: Failed to re-package resources. 
C:\Users\Local\Android\sdk\build-tools\25.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/AppData/Local/Android/sdk\platforms\android-25\android.jar" -F bin/resources.ap_ 

stderr[ 
W/  (6744): Zip: missed a central dir sig (at 0) 
W/zipro (6744): Error opening archive C:\AppData\Local\Android\sdk\platforms\android-25\android.jar: Iteration ended 
res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Light.NoTitleBar.Fullscreen'. 

res\values-v14\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.NoActionBar.Fullscreen'. 

res\values-v21\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.NoActionBar.Fullscreen'. 

] 
stdout[ 
Configurations: 
    (default) 
    v14 
    v21 
    mdpi-v4 
    xhdpi-v4 

Files: 
    drawable\app_banner.png 
    Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png 
    drawable\app_icon.png 
    Src: (mdpi-v4) res\drawable-mdpi\app_icon.png 
    values\strings.xml 
    Src:() res\values\strings.xml 
    values\styles.xml 
    Src:() res\values\styles.xml 
    Src: (v14) res\values-v14\styles.xml 
    Src: (v21) res\values-v21\styles.xml 
    AndroidManifest.xml 
    Src:() AndroidManifest.xml 

Resource Dirs: 
    Type drawable 
    drawable\app_banner.png 
     Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png 
    drawable\app_icon.png 
     Src: (mdpi-v4) res\drawable-mdpi\app_icon.png 
    Type values 
    values\strings.xml 
     Src:() res\values\strings.xml 
    values\styles.xml 
     Src:() res\values\styles.xml 
     Src: (v14) res\values-v14\styles.xml 
     Src: (v21) res\values-v21\styles.xml 
Including resources from package: C:\Users\Kira\AppData\Local\Android\sdk\platforms\android-25\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-xhdpi\app_banner.png 
Processing image: res\drawable-mdpi\app_icon.png 
    (processed image res\drawable-mdpi\app_icon.png: 90% size of source) 
    (processed image res\drawable-xhdpi\app_banner.png: 93% size of source) 
    (new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated) 
    (new resource id app_icon from mdpi-v4\drawable\app_icon.png #generated) 
] 
exit code: 1 
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) 
UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure) 
UnityEditor.HostView:OnGUI() 

任何人都遇到此問題?我剛完全更新了我的SDK經理。

Here's my SS of my build-tools

+0

任何人?........ –

+0

Stackoverflow充滿了類似的問題:http://stackoverflow.com/search?q=Unity3d+%28Failed+to+re-package+resources – Hellium

回答

0

這種情況僅在API 19,Material.Light不支持19你可以選擇API 21如果API級別不是對你很重要。 也讓我知道你做了什麼來解決這個問題。

+0

請將解釋添加到您的回答。 –

相關問題