본문 바로가기

IT/ERROR12

Android The color colors in values has no declaration in the base values folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier 안드로이드 스튜디오에서 컬러를 추가하기 위해 colors.xml 에 추가를 했는데 아래 에러가 발생되면서 구현부에서 사용하지 못하는 오류가 발생되었습니다. The color "colors" in values has no declaration in the base values folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier 안드로이드 스튜디오 내 캐시파일들로 인해 정상적으로 빌드되지 못한 듯합니다. 캐시 정리 후 재 실행하면 정상적으로 되니 아래 내용을 참고해서 해결하기 바랍니다. Build > Clean Project File > Invalidat.. 2022. 8. 26.
Android Unable to add window -- token null is not valid; is your activity running? 1. Unable to add window -- token null is not valid 오류 현상 Dialog를 생성해서 화면에 띄우려고 하니 하기 오류가 발생되었습니다. android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? 구현된 코드는 아래와 같으며, 나 같은 경우 Activity에 해당 코드가 구현되어 있으나, 실제 팝업이 생성되는 위치는 Fragment 화면입니다. Dialog = new ProgressDialog(getApplicationContext(), getResources().getString(R.string.Loading).. 2022. 8. 2.
Android No matching client found for package name No matching client found for package name 오류 발생 원인 Android Studio에서 Google Service를 사용하는 프로젝트의 패키지 명을 변경(또는 복제해서 사용)하였을 경우 해당 오류가 발생됩니다.. 이유는 Google Service를 사용하기 위해 추가한 google-services.json 파일에 이전 패키지 명이 등록되어 있기 때문입니다. Execution failed for task ':app:processDebugGoogleServices'. > No matching client found for package name 'com.sarin.prod.dontremote' * Try: > Run with --stacktrace option to get .. 2022. 7. 19.
Android File google-services.json is missing. The Google Services Plugin cannot function without it. 파이어베이스 연동 시 "File google-services.json is missing" 오류가 발생됩니다. 해당 오류 방안에 대해 알아보도록 합시다. google-services.json 파일 등록 app/src 안에 google-services.json 파일을 등록합니다. Gradle 설정 수정 build.gradle 파일에 내용 추가 (project) 많은 블로그에서 build.gradle 의 "buildscript" alias에 넣으라고 하지만 필자의 gradle 버전은 7.2.1버전이라 해당 alias가 없습니다. 7.2.1 이상 버전을 사용할 경우 아래 내용으로 입력하시면 됩니다. plugins { id 'com.android.application' version '7.2.1' apply f.. 2022. 7. 8.