개발/안드로이드20 안드로이드 에뮬레이터 시간 안맞을 때 1. 기기의 설정에서 타임존 미국이나 기타 국가로 되어있는건 아닌지 확인 2. 네트워크 시간 사용이 꺼져있다면 사용하는 것으로 변경 3. 그래도 안맞다면 에뮬레이터 재부팅 - 에뮬레이터를 종료하는게 아니라(창을 닫아 꺼버리는거 말고) 에뮬레이터의 전원 버튼으로 재부팅 해결! 2021. 11. 24. SQLite 쿼리 로그 보기 + Room에서 쿼리 로그 보기 에뮬레이터나 루팅된 기기라면 간단히 태그를 VERBOSE로 설정하면 된다. adb shell setprop log.tag.SQLiteStatements VERBOSE SQLite의 정보성 로그를 보고려면 adb shell setprop log.tag.SQLiteLog VERBOSE 쿼리의 실행 시간을 보고 싶다면 adb shell setprop log.tag.SQLiteTime VERBOSE 출처 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/database/sqlite/SQLiteDebug.java#43 Room을 사용하면 데이터베이스를 생성할 때 QueryCallback에서 로그를 출력할 수 있다.. 2021. 11. 24. Your anti-virus program might be impacting your build performance. 라고 뜰 때 https://stackoverflow.com/questions/58297667/your-anti-virus-program-might-be-impacting-your-build-performance-android-studi Your anti-virus program might be impacting your build performance. Android Studio checked the following directories: Your anti-virus program might be impacting your build performance. Android Studio checked the following directories: C:\Users\user.name\.AndroidStudio3.5\sy.. 2021. 7. 11. java.net.ProtocolException: unexpected end of stream 미리 결론: 서버가 HTTP/1.0으로 응답해 발생했던 문제 1.1로 변경해서 해결됨. Retrofit 사용중에 간헐적으로 오류가 발생했다. 검색해보면 1. Connection: close 헤더를 추가하라거나 2. OkHttpClient.Builder에서 retryOnConnectionFailure를 true로 변경하라거나 3. 에뮬레이터에서만 발생하는 오류라거나 4. 그냥 OkHttp 자체의 버그이거나 5. 혹은 서버의 문제 라는 글들을 볼 수 있는데 1-3까지로는 해결되는게 없다. 4를 확인하기 위해 새 프로젝트를 만들어 UrlConnection을 사용해서 테스트를 했는데 같은 문제가 발생했다. 로그에서 OkHttp를 볼 수 있었어서 OkHttp 문제가 아니라는 것이 확인된 것은 아니지만, 프레임워크.. 2021. 5. 7. 이전 1 2 3 4 5 다음