facebook Android SDK Import시 오류 해결

 유니티3D 안드로이드 프로젝트에 페이스북 안드로이드 SDK를 연동중에 있습니다. 이클립스에 단순히 페이스북 안드로이드 SDK 임포트만 해줘도 에러가 발생하네요. 뭐 cocos2d-x때 하도 당해서 이제 놀랍지도 않네요.


Project 'FacebookSDK' is missing required source folder: 'gen'
The project cannot be built until build path errors are resolved
Unable to resolve target 'android-8'

 위와같은 에러가 발생합니다. 예전에 gen 폴더 관련 에러는 링크처럼 해결했는데 이번에는 해결이 안되더군요.


 먼저 Unable to resolve target 'android-8' 해결을 위해 페이스북 SDK의 Properties -> Android에서 Project Build Target이 위와같이 체크 해제되어 있을텐데 이것을 체크하신 후 저장합니다. 이제 Clean후 Build해보면,

Unable to resolve target 'android-8'
Project 'FacebookSDK' is missing required source folder: 'gen'
The project cannot be built until build path errors are resolved

 3가지가 모두 해결됩니다. 그런데,

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.

 에러가 발생하네요. 이것 역시 예전에 cocos2d-x로 작업중 외부 SDK들 연동할 때 처리해놨던 에러입니다. 링크를 확인하세요.

댓글

이 블로그의 인기 게시물

'xxx.exe' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.

goorm IDE에서 node.js 프로젝트로 Hello World Simple Server 만들어 띄워보기

애드센스 수익을 웨스턴 유니온으로 수표대신 현금으로 지급 받아보자.