[표준프레임워크 DeviceAPI]Eclipse Oxygen DeviceAPI Android executable ErrorError executing aapt: ….. error=86, Bad CPU type in executable
1. 개발환경
Android-sdk 23.0.1~3, OpenJDK 1.8 (project 1.7)
Error executing aapt: Cannot run program "/Users/EGOV/android-sdk-macosx/build-tools/23.0.1/aapt": error=86, Bad CPU type in executable: error=86, Bad CPU type in executable
Error executing aapt: Cannot run program "/Users/EGOV/android-sdk-macosx/build-tools/23.0.1/aapt": error=86, Bad CPU type in executable: error=86, Bad CPU type in executable
두 개발환경 모두 Android Application 실행 시 위와 같은 에러 발생
상위 > 교육환경 MacOS Eclipse Oxygen
하위 > 개발환경 개인 세팅 MacOS Eclipse Oxygen
aapt가 Mach-O executable i386(x86)으로 컴파일 되있다.
24.0.3의 경우 file aapt 명령어를 칠 경우 Mach-0 64bit executable x86_64
23.0.1~23.0.3은 i386(x86)
즉 내가 사용하는 커널은 X86_64 프로세서 타입은 i386(x86)이다.
aapt 가동엔 X86_64가 필요하다. 즉 파일 서버에 있던 23.0.1 은 32bit aapt …
사용을 위해선 32 bit 라이브러리나 64bit 로 변경 필요함.
하지만
32bit 라이브러리가 있더라도 CatalinaOS (Darwin 19) 는 32bit app 구동을 호환하지 않음. Mojave까지만 가능 . 즉, build-tools 23.0.x aapt 버전은 모두 i386으로 컴파일 되어 있기 때문에, 24.0.x 이상 버전 부터 사용해야 함.