블로그 이미지
Kanais
Researcher & Developer 퍼즐을 완성하려면 퍼즐 조각들을 하나 둘씩 맞춰나가야 한다. 인생의 퍼즐 조각들을 하나 둘씩 맞춰나가다 보면 인생이란 퍼즐도 완성되는 날이 오려나...?

calendar

1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Notice

2016. 1. 13. 14:57 Programming/Error Clear!

운영체제 : 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 을 삭제해 주니 잘됨.

posted by Kanais