안녕하세요, 안드로이드 스튜디오에 SDK 연동 및 호출 테스트를 하려니깐
코드(java)상
import com.kakao.auth.ApprovalType;
import com.kakao.auth.AuthType;
import com.kakao.auth.IApplicationConfig;
import com.kakao.auth.ISessionConfig;
import com.kakao.auth.KakaoAdapter;
public class KakaoSdkAdapter extends KakaoAdapter
로 패키지 자동완성등 연결된거까지 확인후 빌드를 하려니 아래와같은 에러가 출력됩니다.
Task :game:compileDebugFeatureJavaWithJavac FAILED
(… … …)\javascript\KakaoSdkAdapter.java:5: error: package com.kakao.auth does not exist
import com.kakao.auth.ApprovalType;
^
(… … …)\javascript\KakaoSdkAdapter.java:6: error: package com.kakao.auth does not exist
import com.kakao.auth.AuthType;
^
(… … …)\javascript\KakaoSdkAdapter.java:7: error: package com.kakao.auth does not exist
import com.kakao.auth.IApplicationConfig;
^
(… … …)\javascript\KakaoSdkAdapter.java:8: error: package com.kakao.auth does not exist
import com.kakao.auth.ISessionConfig;
^
(… … …)\javascript\KakaoSdkAdapter.java:9: error: package com.kakao.auth does not exist
import com.kakao.auth.KakaoAdapter;
^
(…중략…)
symbol: class ISessionConfig
location: class KakaoSdkAdapter
(… … …)\javascript\KakaoSdkAdapter.java:57: error: method does not override or implement a method from a supertype
@Override
^
(… … …)\javascript\KakaoSdkAdapter.java:59: error: cannot find symbol
return new IApplicationConfig() {
^
symbol: class IApplicationConfig
location: class KakaoSdkAdapter
12 errors
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:game:compileDebugFeatureJavaWithJavac’.
Compilation failed; see the compiler error output for details.
안드로이드 스튜디오에서 기본 연결시 추가적인 세팅이 필요한건가요?
> 참조문서
https://developers.kakao.com/docs/latest/ko/getting-started/sdk-android#apply-sdk
> 환경
JDK 1.8
OS: Win10
안드로이드 스튜디오: 4.1
PROP_COMPILE_SDK_VERSION=28
PROP_MIN_SDK_VERSION=19
PROP_TARGET_SDK_VERSION=28
PROP_BUILD_TOOLS_VERSION=30.0.2
KAKAO_SDK_GROUP=com.kakao.sdk
KAKAO_SDK_VERSION=1.30.3
> Builid.gradle
dependencies {
implementation fileTree(dir: ‘…/libs’, include: [‘.jar’,'.aar’])
implementation fileTree(dir: ‘libs’, include: [‘.jar’,'.aar’])
… … …
}
dependencies {
// 2.X
implementation group: project.KAKAO_SDK_GROUP, name: ‘usermgmt’, version: project.KAKAO_SDK_VERSION
implementation group: project.KAKAO_SDK_GROUP, name: ‘kakaotalk’, version: project.KAKAO_SDK_VERSION
implementation group: project.KAKAO_SDK_GROUP, name: ‘kakaolink’, version: project.KAKAO_SDK_VERSION
implementation group: project.KAKAO_SDK_GROUP, name: ‘kakaostory’, version: project.KAKAO_SDK_VERSION
}