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

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

[์•ˆ๋“œ๋กœ์ด๋“œ] Switch ๋ฒ„ํŠผ ์‚ฌ์šฉ๋ฒ• public class MainActivity extends AppCompatActivity { int nChecked = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Switch switchButton = findViewById(R.id.sw_opt); switchButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButt.. 2021. 3. 22.
[์•ˆ๋“œ๋กœ์ด๋“œ - ์—๋Ÿฌ] Installation did not succeed.The application could not be installed Installation did not succeed. The application could not be installed. Installation failed due to: '-26' ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ๋Œ๋ฆฌ๋Š”๋ฐ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ. ์›์ธ : ์• ๋ฎฌ๋ ˆ์ดํ„ฐ์— ์–ด๋– ํ•œ(?. ์ด์œ ๋Š” ๋‹ค์–‘ํ•  ๊ฒƒ ๊ฐ™๋‹ค) ์ด์œ ๋กœ ํ•ด๋‹น ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ์ œ๋Œ€๋กœ ์„ค์น˜๊ฐ€ ๋˜์ง€ ์•Š๋Š”๋‹ค. (9์›”24์ผ ์ถ”๊ฐ€ ์ž‘์„ฑ) ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• : ์ด๋Ÿฐ ๊ฒฝ์šฐ,, ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ Wipe Data ํ•ด ์ดˆ๊ธฐํ™”(?) ํ•œ๋‹ค ใ…‹ใ…‹; ์ด ๋ฐฉ๋ฒ•์ด ์•„๋‹ˆ๋ผ๋ฉด ํ•ด๋‹น ์–ดํ”Œ์„ ์ œ๊ฑฐํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ์„ ๊ฒƒ ๊ฐ™๋‹ค. (9์›”24์ผ ์ถ”๊ฐ€ ์ž‘์„ฑ) 1. Open AVD Manager 2. ํ•ด๋‹น ์• ๋ฎฌ๋ ˆ์ดํ„ฐ ์šฐํด๋ฆญ > Wipe Data 3. ์ •์ƒ ๋™์ž‘. 2021. 3. 22.
[์•ˆ๋“œ๋กœ์ด๋“œ] Android11๋กœ ์—…๋ฐ์ดํŠธ ๋˜๋ฉฐ sdcard์— ์ ‘๊ทผ์ด ๋ถˆ๊ฐ€๋Šฅํ•œ ๋ฌธ์ œ Android11๋ถ€ํ„ฐ ์•ˆ๋“œ๋กœ์ด๋“œ์˜ ๋ณด์•ˆ ๋ฌธ์ œ๋กœ sdcard์— ์ ‘๊ทผ์ด ๋ถˆ๊ฐ€๋Šฅํ–ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์ €์žฅํ•  ํŒŒ์ผ์ด ์žˆ๋‹ค๋ฉด sdcard์— ์ €์žฅํ•˜๊ธฐ ๋ณด๊ฐ€๋Š” ๊ฐ ์•ฑ ๋‚ด ๋””๋น„(SQLiteDatabase) ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒŒ ์ข‹๊ฒ ๋‹ค๋Š” ์ƒ๊ฐ์„ ํ–ˆ๋‹ค. (๋””๋น„๊ฐ€ ์•„๋‹Œ ๋‹ค๋ฅธ ์ถ”๊ฐ€ ์˜๊ฒฌ์ด ์žˆ์œผ์‹œ๋‹ค๋ฉด ๋Œ“๊ธ€ ์ฃผ์„ธ์š”) ๊ธฐ์กด์—๋Š” sdcard์— ์ €์žฅ์ด ๋˜๋˜ ํŒŒ์ผ์€ ์—ฌ๋Ÿฌ ์•ฑ์—์„œ ํ•ด๋‹น ๋ฉ”๋ชจ๋ฆฌ์— ์ ‘๊ทผ์ด ๊ฐ€๋Šฅํ–ˆ๋‹ค. ํ•˜์ง€๋งŒ ๊ฐ ์•ฑ ๋‚ด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ €์žฅํ•  ๊ฒฝ์šฐ, ํ•ด๋‹น ํŒŒ์ผ์„ ์—ฌ๋Ÿฌ ์•ฑ์—์„œ ๊ณต์œ ํ•ด ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋‹ค. … Android11 ์ด์ „์—์„œ๋Š” ๊ธฐ์กด์— ์‚ฌ์šฉํ•˜๋˜ sdcard๋ฅผ ์‚ฌ์šฉํ•˜๊ณ , Android11๋ถ€ํ„ฐ๋Š” DB๋ฅผ ์‚ฌ์šฉํ•˜๊ณ ์ž ํ•œ๋‹ค๋ฉด ๋‚˜๋Š”, int SDK_INT = Build.SDK_INT; if (SDK_INT >= 30) ์•ˆ๋“œ๋กœ์ด๋“œ11์ธ ๊ฒฝ์šฐ์— ํƒˆ ๋กœ์ง .. 2021. 3. 18.
[์•ˆ๋“œ๋กœ์ด๋“œ] ERROR: Not enough space to create userdata partition. ์—๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ๋„์šฐ๋Š” ๋ฐ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒ ERROR: Not enough space to create userdata partition. ํ•ด๋‹น ๊ฒฝ๋กœ๋กœ ์ด๋™ํ•ด ๋‹น์žฅ ์‚ฌ์šฉํ•  ๊ฒƒ๋งŒ ๋‚จ๊ธฐ๊ณ  ๊ทธ๋™์•ˆ ์—ด์‹ฌํžˆ ๋งŒ๋“ค์–ด ์ฃผ์—ˆ๋˜(ํ—˜ํ•œ ๋ง) ์—๋ฎฌ๋ ˆ์ดํ„ฐ๋“ค ๋ชจ์กฐ๋ฆฌ ์‚ญ์ œ... ์ด๋ ‡๊ฒŒ ๋งŽ์•˜๊ตฌ๋‚˜ .. ใ…Žใ…Ž ๊ทธ๋Ÿผ ๊ณต๊ฐ„ ํ™•๋ณด๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.... (๊ป„๊ป„) ์—๋ฎฌ๋ ˆ์ดํ„ฐ ์ง€์šธ ๋•Œ ์•ˆ๋“œ๋กœ์ด๋“œ์ŠคํŠœ๋””์˜ค์—์„œ ์ง€์šด๋‹ค๊ณ  ๋˜๋Š” ๊ฒŒ ์•„๋‹ˆ์—ˆ๋„ค.. 2021. 1. 12.