Microsoft MVP성태의 닷넷 이야기
오류 유형: 406. Xamarin 빌드 에러 XA5209, APT0000 [링크 복사], [링크+제목 복사],
조회: 19674
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Xamarin 빌드 에러 XA5209, APT0000

2대의 Visual Studio 2017에서 Xamarin 빌드를 하는데 한 대의 경우에만 유독 다음과 같은 빌드 오류가 발생합니다.

An error occurred trying to install required android components on Project 'MyFirstApp.Android'.
Project 'MyFirstApp.Android' requires the following components installed on your machine: 
Xamarin.Android.Support.v7.AppCompat
JavaLibraryReference: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.aar-23.3.0.0
AndroidResources: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.aar-23.3.0.0
Xamarin.Android.Support.Design
JavaLibraryReference: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/design/23.3.0/design-23.3.0.aar-23.3.0.0
AndroidResources: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/design/23.3.0/design-23.3.0.aar-23.3.0.0
Xamarin.Android.Support.v7.MediaRouter
JavaLibraryReference: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/mediarouter-v7/23.3.0/mediarouter-v7-23.3.0.aar-23.3.0.0
JavaLibraryReference: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/mediarouter-v7/23.3.0/mediarouter-v7-23.3.0.aar-23.3.0.0
AndroidResources: https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip-m2repository/com/android/support/mediarouter-v7/23.3.0/mediarouter-v7-23.3.0.aar-23.3.0.0

Please double-click here to install it.

Intallation Errors: XA5209 Unzipping failed. Please download 'https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip:m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.aar' and extract it to the 'C:\Users\kevin\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\embedded' directory
XA5209 Reason: The process cannot access the file 'C:\Users\kevin\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\embedded\res\drawable-mdpi-v4' because it is being used by another process.
XA5207 Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Java library file 'C:\Program Files (x86)\Android\android-sdk\extras\android\classes.jar' doesn't exist.
XA5207 Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Java library file 'C:\Program Files (x86)\Android\android-sdk\extras\android\classes.jar' doesn't exist.
XA5207 Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file 'C:\Program Files (x86)\Android\android-sdk\extras\android\classes.jar' doesn't exist.
XA5207 Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file 'C:\Program Files (x86)\Android\android-sdk\extras\android\libs/internal_impl-23.3.0.jar' doesn't exist.

오류 메시지를 자세히 보면,

Intallation Errors: XA5209 Unzipping failed. Please download 'https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip:m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.aar' and extract it to the 'C:\Users\kevin\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\embedded' directory

"https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip" 파일을 다운로드해 압축을 푼 후, 다시 그 폴더로부터 "/m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.aar"에 해당하는 파일의 (확장자를 .zip으로 변환하고) 압축을 "%LOCALAPPDATA%\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.3.0.0\embedded" 폴더에 풀어 놓으면 됩니다. 이후, 남아 있는 항목들에 대해서도 유사하게 해결하면 되는데 매우 번거롭습니다. (아래에 이에 대한 우회 해결책이 있습니다.)

그런데, 이렇게 해서 XA5209 관련 오류들은 해결했지만 여전히 다음과 같은 식의 빌드 오류가 발생합니다.

2>D:\temp\MyFirstApp\MyFirstApp\MyFirstApp.Android\obj\Debug\resourcecache\E722C8F606153F6E3A17720075336AE1\res\values\values.xml(4): error APT0000:  Attribute "drawerArrowStyle" has already been defined
2>D:\temp\MyFirstApp\MyFirstApp\MyFirstApp.Android\obj\Debug\resourcecache\E722C8F606153F6E3A17720075336AE1\res\values\values.xml(5): error APT0000:  Attribute "height" has already been defined
...[생략]...
2>D:\temp\MyFirstApp\MyFirstApp\MyFirstApp.Android\obj\Debug\resourcecache\E722C8F606153F6E3A17720075336AE1\res\values\values.xml(6): error APT0000:  Attribute "isLightTheme" has already been defined
2>D:\temp\MyFirstApp\MyFirstApp\MyFirstApp.Android\obj\Debug\resourcecache\E722C8F606153F6E3A17720075336AE1\res\values\values.xml(100): error APT0000:  Attribute "theme" has already been defined
2>D:\temp\MyFirstApp\MyFirstApp\MyFirstApp.Android\obj\Debug\resourcecache\E722C8F606153F6E3A17720075336AE1\res\values\values.xml(101): error APT0000:  Attribute "backgroundTint" has already been defined
2>D:\temp\MyFirstApp\MyFirstApp\MyFirstApp.Android\obj\Debug\resourcecache\E722C8F606153F6E3A17720075336AE1\res\values\values.xml(101): error APT0000:  Attribute "backgroundTintMode" has already been defined

검색해 보면 %LOCALAPPDATA%\Xamarin 폴더를 삭제하고 다시 빌드하라고 하는데... 별로 소용이 없었습니다.




제가 했던 해결책은, 그냥 빌드 잘 되는 Visual Studio 2017의 PC에 있는 "%LOCALAPPDATA%\Xamarin" 폴더의 내용을 모두 복사해 오는 것이었습니다. 이러면 일일이 XA5209 오류에 따른 .zip 파일도 다운로드 받을 필요 없고 values.xml의 APT0000 빌드 오류도 없어집니다. (만약 잘 운영되는 "%LOCALAPPDATA%\Xamarin" 폴더를 구할 수 없다면... values.xml의 APT0000 빌드 오류는 여러분들의 글 소재로 맡기겠습니다.)




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 7/8/2017]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 106  107  108  [109]  110  111  112  113  114  115  116  117  118  119  120  ...
NoWriterDateCnt.TitleFile(s)
11230정성태6/28/201718838제니퍼 .NET: 26. 제니퍼 닷넷 적용 사례 (6) - 잦은 Recycle 문제
11229정성태6/27/201720237오류 유형: 402. Windows Server Backup 관리 콘솔이 없어진 경우
11228정성태6/26/201717437개발 환경 구성: 320. Visual Basic .NET 프로젝트에서 내장 Manifest 자원을 EXE 파일로부터 제거하는 방법파일 다운로드1
11227정성태6/19/201725843개발 환경 구성: 319. windbg에서 python 스크립트 실행하는 방법 - pykd [6]
11226정성태6/19/201716998오류 유형: 401. Microsoft Edge를 실행했는데 입력 반응이 없는 경우
11225정성태6/19/201716220오류 유형: 400. Outlook - The required file ExSec32.dll cannot be found in your path. Install Microsoft Outlook again.
11224정성태6/13/201718717.NET Framework: 661. Json.NET의 DeserializeObject 수행 시 속성 이름을 동적으로 바꾸는 방법파일 다운로드1
11223정성태6/12/201717651개발 환경 구성: 318. WCF Service Application과 WCFTestClient.exe
11222정성태6/10/201721773오류 유형: 399. WCF - A property with the name 'UriTemplateMatchResults' already exists.파일 다운로드1
11221정성태6/10/201718806오류 유형: 398. Fakes - Assembly 'Jennifer5.Fakes' with identity '[...].Fakes, [...]' uses '[...]' which has a higher version than referenced assembly '[...]' with identity '[...]'
11220정성태6/10/201723658.NET Framework: 660. Shallow Copy와 Deep Copy [1]파일 다운로드2
11219정성태6/7/201718801.NET Framework: 659. 닷넷 - TypeForwardedFrom / TypeForwardedTo 특성의 사용법
11218정성태6/1/201721697개발 환경 구성: 317. Hyper-V 내의 VM에서 다시 Hyper-V를 설치: Nested Virtualization
11217정성태6/1/201717846오류 유형: 397. initerrlog: Could not open error log file 'C:\...\MSSQL12.MSSQLSERVER\MSSQL\Log\ERRORLOG'
11216정성태6/1/201719562오류 유형: 396. Activation context generation failed
11215정성태6/1/201721146오류 유형: 395. 관리 콘솔을 실행하면 "This app has been blocked for your protection" 오류 발생 [1]
11214정성태6/1/201718540오류 유형: 394. MSDTC 서비스 시작 시 -1073737712(0xC0001010) 오류와 함께 종료되는 문제 [1]
11213정성태5/26/201723935오류 유형: 393. TFS - The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
11212정성태5/26/201723183오류 유형: 392. Windows Server 2016에 KB4019472 업데이트가 실패하는 경우
11211정성태5/26/201722049오류 유형: 391. BeginInvoke에 전달한 람다 함수에 CS1660 에러가 발생하는 경우
11210정성태5/25/201722420기타: 65. ActiveX 없는 전자 메일에 사용된 "개인정보 보호를 위해 암호화된 보안메일"의 암호화 방법
11209정성태5/25/201769977Windows: 143. Windows 10의 Recovery 파티션을 삭제 및 새로 생성하는 방법 [16]
11208정성태5/25/201728804오류 유형: 390. diskpart의 set id 명령어에서 "The specified type is not in the correct format." 오류 발생
11207정성태5/24/201729658Windows: 142. Windows 10의 복구 콘솔로 부팅하는 방법
11206정성태5/24/201722854오류 유형: 389. DISM.exe - The specified image in the specified wim is already mounted for read/write access.
11205정성태5/24/201722611.NET Framework: 658. C#의 tail call 구현은? [1]
... 106  107  108  [109]  110  111  112  113  114  115  116  117  118  119  120  ...