본문 바로가기

전체 글156

[Android] Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle' 오류해결 build.gradle에 KakaoSDK를 추가시키기 위해서 다음을 추가하는 과정에서 다음과 같은 오류를 만나게 되었다. 다음과 관련된것을 build할 수 없다는 것이다. 해결방법을 찾아보니 다음과 같다. [해결방법 1] Arctic Fox 버전 이후에 생성된 프로젝트는 build.gradle이 아닌 settings.gradle에 아래와같이 allprojects 레포지토리를 추가 즉 AndroidStudio버전이 높은 어느 특정에서는 코드 추가를 build.gradle이 아닌 settings.gradle에 추가를 해주어야한다는 내용이다. 그럼 해결방법을 알았으니 settings.gradle에 코드를 옮겨주도록 하자. 문제없이 잘 싱크가 된것을 볼 수 있다. 2022. 2. 9.
com.google.android.gms.common.api.ApiException: 7 인터넷 연결 오류를 뜻함. 에뮬레이터 또는 스마트폰의 인터넷 연결 상태를 재 확인하자 2022. 2. 9.
카카오로그인관련 key hash https://bacassf.tistory.com/69 Facebook Key Hash 생성/등록하기 페이스북 SDK를 사용하기 위해 페이스북 개발자 사이트에 앱을 등록시킬때 key hash 를 입력해야 합니다. key hash 는 개발시 사용되는 디버그 keystore 로 만든 키와 실제 마켓등록용 bacassf.tistory.com 디버그 keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64 릴리즈 keytool -exportcert -alias key0 -keystore /Users/younminchan/Desktop/Lotte/Untitled | openssl.. 2022. 2. 7.
kotlin으로 tint설정 방법 binding.ivHome.setColorFilter(Color.parseColor("#007AFF")) binding.ivWrite.clearColorFilter() binding.ivMypage.clearColorFilter() 2022. 2. 7.