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

์•ˆ๋“œ๋กœ์ด๋“œ42

[์•ˆ๋“œ๋กœ์ด๋“œ] net::ERR_CACHE_MISS ์›น๋ทฐ ์ƒ˜ํ”Œ์„ ๋งŒ๋“ค๋‹ค๊ฐ€ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ๋ญ๊ฐ€ ๋ฌธ์ œ์ผ๊นŒ ๊ตฌ๊ธ€๋ง์„ ํ•˜๋‹ˆ, ๋งค๋‹ˆํŽ˜์ŠคํŠธ์—์„œ ์„ค์ •ํ•˜์ง€ ์•Š์€ ๋ถ€๋ถ„์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. AndroidManifest.xml ์— ๋‹ค์Œ์„ ๊ผญ ์ถ”๊ฐ€ํ•ด ์ค„ ๊ฒƒ! 2021. 5. 2.
[์•ˆ๋“œ๋กœ์ด๋“œ] ์›น๋ทฐ ๋””๋ฒ„๊น… ์‰ฝ๊ฒŒ ํ•˜๋Š” ๋ฐฉ๋ฒ• - Chrome inspect ์‚ฌ์šฉ๋ฒ• (2) index.html ์„ ์ƒ์„ฑํ•˜๋ฉด ๊ธฐ๋ณธ ์ฝ”๋“œ๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด ๋˜์–ด ์žˆ๋‹ค. ์—ฌ๊ธฐ์— ์ƒˆ๋กœ์šด ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ด ๋ณด์ž. ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ํ…Œ์ŠคํŠธ ๋ฒ„ํŠผ ๋ฅผ ์•ˆ์— ์ถ”๊ฐ€ํ•˜๊ณ , ๋ฐ–, ์•ˆ์—์„œ ํ…Œ์ŠคํŠธ ๋ฒ„ํŠผ ์„ ์ถ”๊ฐ€ํ–ˆ๋‹ค. index.html ๋งŒ์„ ์ž‘์„ฑํ–ˆ์„ ๋•Œ์˜ ๊ฒฐ๊ณผ ํ™”๋ฉด ๋นจ๊ฐ„์ƒ‰์œผ๋กœ ์น ํ•œ ๋ถ€๋ถ„์€ ๋ณธ์ธ์˜ ์•„์ดํ”ผ์ด๋‹ค. ์ž์‹ ์˜ ์•„์ดํ”ผ๋ฅผ ๋ชจ๋ฅธ๋‹ค๋ฉด ํ‚ค๋ณด๋“œ์—์„œ ์œˆ๋„์šฐ+R ํ‚ค > cmd > ipconfig ๋ช…๋ น์–ด๋กœ ์กฐํšŒํ•  ์ˆ˜ ์žˆ๋‹ค. ... ์ด์ œ Android ์›น๋ทฐ๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ์ž‘์—…์„ ์‹œ์ž‘ํ•ด ๋ณด์ž. index.html ํ…Œ์ŠคํŠธ ๋ฒ„ํŠผ test.js var test = { callAndroid: function (callbackSuccess, callbackFail, sInput) { var result = window.BRIDGE.androidFunc(.. 2021. 5. 2.
[์•ˆ๋“œ๋กœ์ด๋“œ] ์›น๋ทฐ ๋””๋ฒ„๊น… ์‰ฝ๊ฒŒ ํ•˜๋Š” ๋ฐฉ๋ฒ• - Chrome inspect ์‚ฌ์šฉ๋ฒ• (1) ์›น๋ทฐ๋Š” ๋ชจ๋ฐ”์ผ ๋‹จ๋ง๊ธฐ์—์„œ ์›นํŽ˜์ด์ง€๋ฅผ ๋„์šฐ๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•œ๋‹ค. Chrome inspect ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์•ˆ๋“œ๋กœ์ด๋“œ ์›น๋ทฐ์—์„œ๋„ ์›น๋ธŒ๋ผ์šฐ์ €์—์„œ F12๋ฅผ ๋ˆŒ๋Ÿฌ ๋””๋ฒ„๊น…ํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์€ ํšจ๊ณผ๋ฅผ ๋‚ผ ์ˆ˜ ์žˆ๋‹ค. ๋จผ์ € ์ƒˆ๋กœ์šด ์›นํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž‘์—…ํ–ˆ๋‹ค. 1. Package Explorer์—์„œ ์šฐํด๋ฆญ > New > Other > Dynamic Web Project 2. ํ”„๋กœ์ ํŠธ ์ด๋ฆ„์„ ์ ๊ณ  Finish 3. ๊ธฐ์กด ์„ค์น˜ํ•œ Tomcat Server์— ๋ฐฉ๊ธˆ ์ƒ์„ฑํ•œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋„ฃ๊ธฐ ์œ„ํ•ด ๋”๋ธ”ํด๋ฆญ 4. Tomcat Server์„ ๋”๋ธ”ํด๋ฆญํ•˜๋ฉด ๊ฐ€์žฅ ๋จผ์ € ๋œจ๋Š” ํŽ˜์ด์ง€๋Š” Overview์ธ๋ฐ, ์ด๋Š” ๋ฌด์‹œ Modules > Web App Module... ๋ฅผ ํด๋ฆญ 5. ๋ฐฉ๊ธˆ ์ƒ์„ฑํ•œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋”๋ธ”ํด๋ฆญํ•ด Path์— ๋„ฃ์–ด์ค€๋‹ค... 2021. 5. 2.
[์•ˆ๋“œ๋กœ์ด๋“œ] PrettyFormatStrategy ์‚ฌ์šฉํ•ด์„œ ์ •๋ฆฌ๋œ ๋กœ๊ทธ ์ถœ๋ ฅํ•˜๋Š” ๋ฐฉ๋ฒ• PrettyFormatStrategy : ๋™์ž‘ํ•˜๋Š” thread, callstack, message๊ฐ€ ์˜ˆ์˜๊ฒŒ ๋‚˜์˜ฌ ์ˆ˜ ์žˆ๋‹ค. 1) app gradle.build dependencies { implementation 'com.orhanobut:logger:2.2.0' 2) import๋Š” Ctrl + Space ํ•ด์„œ ์žก์•„ ์ค˜๋„ ๋œ๋‹ค. import com.orhanobut.logger.AndroidLogAdapter; import com.orhanobut.logger.Logger; import com.orhanobut.logger.PrettyFormatStrategy; 3) MainActivity > super.onCreate() // Logger Stack Trace Count. PrettyFormatStra.. 2021. 4. 28.