version: ‘1.28.0’
안드로이드 프로젝트에서 사용할 카카오 로그인 연동을 구현중Session.getCurrentSession 을 import 했는데도 불러오질 못하네요 뭐가 잘못된건가요?
import com.kakao.auth.AuthType
import com.kakao.auth.Session.getCurrentSession
import com.kakao.network.ErrorResult
import com.kakao.usermgmt.UserManagement
import com.kakao.usermgmt.callback.LogoutResponseCallback
import com.kakao.usermgmt.callback.UnLinkResponseCallback
import com.kakao.usermgmt.response.MeV2Response
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private var callback: SessionCallback = SessionCallback()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
btn_kakao_login.setOnClickListener {
Session.getCurrentSession().addCallback(callback);
Session.getCurrentSession().open(AuthType.KAKAO_TALK, this)
에러 내용 입니다 : MainActivity.kt: (28, 21): Unresolved reference: getCurrentSession