๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ „์ฒด ๊ธ€

(374)
[Android] ๋„คํŠธ์›Œํฌ ์ž‘์—… ์ค‘ ๊ฐ„ํ—์  java.io.IOException: unexpected end of stream on https://juntcom.tistory.com/105 [okhttp3] okhttp IOException: unexpected end of stream on Address ์Šคํ”„๋ง์—์„œ okhttp3 ๋ฅผ ์‚ฌ์šฉ์ค‘ ๋กœ๊ทธ์— ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๊ฐ€ ๋–ด๋‹ค. okhttp3 ์‚ฌ์šฉ ์ค‘์— ๊ฐ„ํ—์ ์œผ๋กœ unexpected end of stream on [์ฃผ์†Œ] ๊ฐ€ ๋‚˜์™”๋‹ค. request ๋ฅผ ์š”์ฒญ๋ฐ›๋Š” ์„œ๋ฒ„ ์„ค์ •๋งˆ๋‹ค ๋‹ค๋ฅธ ๊ฒƒ ๊ฐ™๋‹ค. ํ•ด๋‹น juntcom.tistory.com Request.Builder์— addHeader("Connection", "close") ์ถ”๊ฐ€ ํ›„ ๋ฌธ์ œ ํ•ด๊ฒฐ๋จ.
[Android] deprecated AsyncTask ์ˆ˜์ • > Executors ์ด์šฉํ•˜๊ธฐ https://ittutorialpoint.com/the-asynctask-api-is-deprecated-in-android-11-what-are-the-alternatives/?quad_cc The AsyncTask API is deprecated in Android 11. What are the alternatives? You can directly use Executors from java.util.concurrent package.I also searched about it and I found a solution in this Android Async API is ittutorialpoint.com Solution 2 ๋ฐฉ๋ฒ•์„ ์ด์šฉํ–ˆ์Œ. ExecutorService executor = Execu..
[Android] deprecated AsyncTask ์ˆ˜์ • > RxJava ์ด์šฉํ•˜๊ธฐ https://androidsrc.net/replace-android-asynctask-rxjava/ Replace Android AsyncTask with RxJava - AndroidSRC Today is the day when we will say goodbye to AsyncTask. It will be replaced by our new friend RxJava which is quite in news now a days. We will be covering how RxJava... androidsrc.net Observable.just(input) .map(this::doInBackground) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedul..
[Android] startActivity()๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ์•ˆ๋“œ๋กœ์ด๋“œ ์‹œ์Šคํ…œ์—์„œ๋Š” ์–ด๋–ป๊ฒŒ Activity๋ฅผ ์‹คํ–‰ํ•˜๋Š”๊ฐ€ 1 manifest ํŒŒ์ผ์— ์š”์†Œ๋ฅผ ์š”์†Œ์˜ ํ•˜์œ„ ์š”์†Œ๋กœ ์ถ”๊ฐ€ํ•ด์•ผํ•œ๋‹ค. ์—ฌ๊ธฐ์— ์„ ์–ธ๋˜์ง€ ์•Š์€ activity ์™ธ ๋‹ค๋ฅธ ๊ตฌ์„ฑ์š”์†Œ๋“ค์€ ์‹œ์Šคํ…œ์—์„œ ์‹คํ–‰ํ•  ์ˆ˜๊ฐ€ ์—†๋‹ค. 2 startActivity()์˜ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋“ค์–ด๊ฐ€๋Š” Intent๋Š” ์‹œ์ž‘ํ•  ์•กํ‹ฐ๋น„ํ‹ฐ๋ฅผ ์„ค๋ช…ํ•˜๊ณ  ๋ชจ๋“  ํ•„์ˆ˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ด๋Š”๋‹ค. 3 - 1 Intent ๊ฐ์ฒด๊ฐ€ ํŠน์ • ์•กํ‹ฐ๋น„ํ‹ฐ๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ์ง€์ •ํ•  ๊ฒฝ์šฐ. ์•ฑ์˜ ํŒจํ‚ค์ง€ ์ด๋ฆ„ ๋˜๋Š” ๊ตฌ์„ฑ ์š”์†Œ ํด๋ž˜์Šค ์ด๋ฆ„ ์ •๋ณด๋ฅผ ๋„ฃ์Œ : ๋ช…์‹œ์  ์ธํ…ํŠธ. ์ผ๋ฐ˜์ ์œผ๋กœ ์•ฑ ์•ˆ์—์„œ ๊ตฌ์„ฑ์š”์†Œ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ(๋ถ€๋ฅผ ๋•Œ... ๊ฐ€ ๋งž์„ ์ˆ˜๋„) ๋ช…์‹œ์  ์ธํ…ํŠธ๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. > Intent ๊ฐ์ฒด๊ฐ€ ๋ช…์‹œ์ ์œผ๋กœ ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ์ง€์ •ํ•˜๋ฉด ์‹œ์Šคํ…œ์ด ํ•ด๋‹น ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ์ฆ‰์‹œ ์‹œ์ž‘ํ•œ๋‹ค. 3 - 2 Intent ๊ฐ์ฒด๊ฐ€ ์ˆ˜ํ–‰ํ•  ์ผ๋ฐ˜์ ์ธ ์ž‘์—…์„ ์„ ์–ธํ•  ๊ฒฝ์šฐ : ์•”์‹œ์  ์ธํ…ํŠธ..
[Android][Firebase]FIS_AUTH_ERROR FirebaseInstanceId๋ฅผ ํ†ตํ•ด FCM ํ† ํฐ์„ ๋ฐœ๊ธ‰๋ฐ›๋˜ ์ฝ”๋“œ๋ฅผ FirebaseMessaging์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์œผ๋กœ ๋ฐ”๊พธ์—ˆ๋Š”๋ฐ ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์ด์Šˆ ๋ถ„์„ FirebaseMessaging ์„ ํ†ตํ•ด FCM ํ† ํฐ ํ˜ธ์ถœ ์‹œ ๊ฐ„ํ—์ ์œผ๋กœ RuntimeExecutionException ๋ฐœ์ƒํ•œ๋‹ค. ๊ฐ„ํ—์ ์œผ๋กœ ๋ฐœ์ƒํ•˜๋Š” ์ด์œ ๋Š”, ๋„คํŠธ์›Œํฌ ์—ฐ๊ฒฐ์— ๋ฌธ์ œ๊ฐ€ ์žˆ์„ ๊ฒฝ์šฐ์— ํ•ด๋‹น ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋Š” ๊ฒƒ์„ ํ…Œ์ŠคํŠธ๋ฅผ ํ†ตํ•ด ๋ฐœ๊ฒฌํ–ˆ๋‹ค. FIS_AUTH_ERROR ๋กœ ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๊ฐ€ ๋…ธ์ถœ๋œ๋‹ค. FIS ๋Š” Firebase Installations Service๋กœ, Firebase ์„œ๋น„์Šค๋“ค(์˜ˆ : Firebase ํด๋ผ์šฐ๋“œ ๋ฉ”์‹œ์ง•, Firebase์šฉ Google ์• ๋„๋ฆฌํ‹ฑ์Šค ๋“ฑ)์— ๋‚ด๋ถ€์ ์œผ๋กœ ์‚ฌ์šฉ๋˜๋Š” Firebase ์„ค์น˜ ID๋ฅผ ์ œ๊ณตํ•œ๋‹ค. FI..
[Android][Google Play Console]๋„ค์ดํ‹ฐ๋ธŒ ๋””๋ฒ„๊ทธ ๊ธฐํ˜ธ ํŒŒ์ผ ์ˆ˜๋™ ์—…๋กœ๋“œ ๊ตฌ๊ธ€ ํ”Œ๋ ˆ์ด ์ฝ˜์†”์—์„œ ์•ฑ ๋ฐฐํฌ๋ฅผ ์œ„ํ•ด aab ํŒŒ์ผ์„ ์—…๋กœ๋“œํ•  ๋•Œ๋งˆ๋‹ค ๋„ค์ดํ‹ฐ๋ธŒ ๋””๋ฒ„๊ทธ ๊ธฐํ˜ธ ํŒŒ์ผ์ด ์—†๋‹ค๊ณ  ๊ฒฝ๊ณ ๊ฐ€ ๋–ด์—ˆ๋‹ค. ๊ทธ ๊ฒฝ๊ณ ๋ฅผ ๋ฌด์‹œํ•˜๊ณ  ์•ฑ์„ ์ž˜๋งŒ ์—…๋ฐ์ดํŠธ ํ–ˆ์—ˆ๊ณ  ์ด์Šˆ ๋ชจ๋‹ˆํ„ฐ๋ง์€ ํŒŒ์ด์–ด๋ฒ ์ด์Šค์˜ ํฌ๋ž˜์‹œ๋ฆฌํ‹ฑ์Šค๋ฅผ ์ด์šฉํ•ด์„œ ํฌ๊ฒŒ ๋ถˆํŽธํ•œ ์ ์€ ์—†์—ˆ๋‹ค. ํ•˜์ง€๋งŒ ๊ฒฝ๊ณ ๊ฐ€ ์ž๊พธ ๋œจ๋Š” ๊ฒƒ์ด ๋ˆˆ์— ๊ฑฐ์Šฌ๋ฆฌ๊ณ  ๊ตฌ๊ธ€ ํ”Œ๋ ˆ์ด ์ฝ˜์†”์ด ๊ถŒ์œ ํ•˜๋Š”๋ฐ์—๋Š” ์ด์œ ๊ฐ€ ์žˆ๋‹ค๋Š” ๊ฒƒ์„ ์•„๋‹ˆ ์ด ๊ฒฝ๊ณ ๋ฅผ ํ•ด๊ฒฐํ•˜๊ณ ์ž ํ–ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ Android Developers์˜ ๊ณต์‹ ๋ฌธ์„œ๋Œ€๋กœ app์˜ build.gradle์— ์„ค์ •์„ ์ถ”๊ฐ€ํ•ด๋„ ์‹ค์ œ aab ํŒŒ์ผ์— ๋””๋ฒ„๊ทธ ์ •๋ณด๊ฐ€ ๋“ค์–ด๊ฐ€ ์žˆ์ง€ ์•Š์•˜๋‹ค. ์ด๊ฑด Android Studio ์ชฝ ๋ฒ„๊ทธ์ธ ๋“ฏ ํ•˜๋‹ค. https://issuetracker.google.com/issues/187734554 https://issuetra..
[Android][Retrofit] onFailure: java.io.IOException: unexpected end of stream on ... https://stackoverflow.com/a/53179102 java.io.IOException: unexpected end of stream on Connection? Calling one of our in-house web services seems to be giving the following error: java.io.IOException: unexpected end of stream on Connection{webservicessandbox.xxx.com:443, proxy=DIRECT@ hostAddre... stackoverflow.com
[Android][Retrofit] HTML Response ์ด์ œ๊ป ์›น๋ทฐ์—์„œ url์„ ๋กœ๋“œํ•˜๋ฉด ๋‹น์—ฐํžˆ 200์ด ๋–จ์–ด์ง€๋‹ˆ๊นŒ html ํŒŒ์ผ์ด ํ™”๋ฉด์— ๋…ธ์ถœ๋˜๋Š” ์‹œ๋‚˜๋ฆฌ์˜ค๋งŒ ์ž‘์—…ํ•˜๋‹ค๊ฐ€, ์ด๋ฒˆ์—๋Š” api๋ฅผ ์ฐ”๋Ÿฌ์„œ 200 ์ฝ”๋“œ๋ฅผ ๋ฐ›์•„์•ผ์ง€๋งŒ ์›น๋ทฐ๋ฅผ ๋…ธ์ถœ์‹œ์ผœ html ํŒŒ์ผ์„ ๋กœ๋“œํ•˜๋Š” ์‹œ๋‚˜๋ฆฌ์˜ค๋ฅผ ์ž‘์—…ํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค. ๊ธฐ์กด ์•ฑ์—์„œ ์‚ฌ์šฉํ•ด ์˜จ Retrofit2๋กœ ์ž‘์—…ํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค. ๊ณ ๋ฏผํ•œ ์‚ฌํ•ญ๋“ค์ด๋‹ค. 1. Call ๋˜๋Š” Response ๋‘˜ ์ค‘์— ์–ด๋Š ๊ฒƒ์„ ์“ธ ๊ฒƒ์ธ๊ฐ€? > Response Coroutine์„ ์“ฐ๊ณ  ์žˆ์–ด์„œ, Response๊ฐ€ ๋” ์ ํ•ฉํ•˜๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค. ๋น„๋™๊ธฐ ์ž‘์—…์— Response๊ฐ€ Call๋ณด๋‹ค ์‚ฌ์šฉํ•˜๊ธฐ ์ข‹๋‹ค๊ณ  ํ•œ๋‹ค. https://jeongupark-study-house.tistory.com/208 Retrofit call ๊ณผ Response ์ฐจ์ด Android ๊ฐœ๋ฐœ ์‹œ ๋„คํŠธ์›Œ..