운영체제 : Windows 8.1 64bit Android Studio : 1.5 Uniuty : 5.0.4f1 작성날짜 : 2016-01-13 |
이놈의 에러 덕분에 하루를 날렸다...
에러의 상세 내용.
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\Android\Android-SDK\build-tools\21.1.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "F:/Android/Android-SDK\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.example.maptest -S "F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res"
stderr[ F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\values\values.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
] stdout[ Configurations: (default) xhdpi-v4
Files: drawable\ic_launcher.png Src: (xhdpi-v4) F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\drawable-xhdpi-v4\ic_launcher.png layout\activity_main.xml Src: () F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\layout\activity_main.xml menu\main.xml Src: () F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\menu\main.xml values\values.xml Src: () F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\values\values.xml AndroidManifest.xml Src: () AndroidManifest.xml
Resource Dirs: Type drawable drawable\ic_launcher.png Src: (xhdpi-v4) F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\drawable-xhdpi-v4\ic_launcher.png Type layout layout\activity_main.xml Src: () F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\layout\activity_main.xml Type menu menu\main.xml Src: () F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\menu\main.xml Type values values\values.xml Src: () F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\values\values.xml Including resources from package: F:\Android\Android-SDK\platforms\android-23\android.jar applyFileOverlay for drawable trying overlaySet Key=app_banner.png trying overlaySet Key=app_icon.png 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\app_icon.png Processing image: F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\drawable-xhdpi-v4\ic_launcher.png (processed image res\drawable\app_icon.png: 94% size of source) (processed image F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\drawable-xhdpi-v4\ic_launcher.png: 74% 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 drawable\app_icon.png #generated) (new resource id ic_launcher from xhdpi-v4\drawable\ic_launcher.png #generated) (new resource id activity_main from F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\layout\activity_main.xml) (new resource id main from F:\Unity Workspace\AndroidAcrivityTest\Temp\StagingArea\android-libraries\app-release\res\menu\main.xml) ] |
구글링을 한 결과...
리소스들 중에서 충돌이 일어난 것 같았다...
그래서 중복된 리소스들을 삭제해주니 해결.
그리고 Unity에서는 Style 이 없나? 그래서 Android에서 Values/sytle.xml 을 삭제해 주니 잘됨.
'Programming > Error Clear!' 카테고리의 다른 글
[Visual Studio 2013] error MSB8020 (0) | 2016.05.09 |
---|---|
[Android] 패키지 파일을 분할하는 중에 문제가 발생하였습니다. (11) | 2016.01.13 |
[Unity] Unable to convert classes into dex format. (1) | 2016.01.13 |
[Unity] android.content.res.Resources$NotFoundException: Resource ID (0) | 2016.01.11 |
[Android] Android Manifest Merger Failed 오류 (0) | 2015.11.25 |