본문 바로가기

오류9

[Android][kotlin] Non-body HTTP method cannot contain @Body. 오류해결방법 (retrofit2 안녕하세요~ 챠니입니다! :) 오늘은 개발중에 나타나는 오류에 대해서 알아보겠습니다. Non-body HTTP method cannot contain @Body. retrofit2 DELETE를 구현하는 과정에서 다음과 같은 오류를 만나게 되었는데요! 오류 해결방법에 대해서 알아보겠습니다 Non-body HTTP method cannot contain @Body. 해결방법 해결방법은 간단합니다. 기존코드를 먼저 보겠습니다. /** 메인게시물 좋아요 -1 */ @Headers("Content-Type: application/json") @DELETE("api/like") suspend fun setMainPostUnlike( @Header("Authorization") token: String, @Body.. 2022. 8. 11.
[Android][kotlin] Go to the documentation to learn how to Fix dependency resolution errors. 안녕하세요~ 챠니입니다! :) 특별히 관계가 있는것은 아니지만 개발 중 버그내용이 있어서 공유하고자합니다. 버그내용 버그 내용은 아래와 같습니다. Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.7.0-runtime (androidx.core:core:1.7.0) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1) Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.7.0-runtime (andr.. 2022. 5. 10.
[Android] Execution failed for task ':app:processDebugGoogleServices'. 오류 해 안녕하세요~ 챠니입니다! :) Firebase Cloud Messaging 작업 중 다음과 같은 오류가 발생했습니다. Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: 오류를 해결하는 방법에 대해서 알아보겠습니다. 해결방법 오류발생 원인은 바로 Firebase push알림을 보내기 위해 필요한 "google-services.json"이 없어서 발생하는 오류입니다. 해결방법 1. Firebase Android App등록 2. Android proj.. 2022. 3. 31.
[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.