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

๐Ÿ’š ๊ฐœ๋ฐœ/์•ˆ๋“œ๋กœ์ด๋“œ58

[์•ˆ๋“œ๋กœ์ด๋“œ] Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package [Package name] signatures do not match previously installed version ๋‚ด ๊ฒฝ์šฐ์—๋Š” ์–ด๋–ค ๊ฒฝ์šฐ์— ๋งŒ๋‚œ ์—๋Ÿฌ์ธ๊ณ  ํ•˜๋‹ˆ.. ์˜ˆ๋ฅผ ๋“ค์–ด, - AVD(Android Virtual Device) A ์— com.devshin93.apktest ๋ผ๋Š” ์ด๋ฆ„์˜ ํŒจํ‚ค์ง€๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋‹ค. - ํ•ด๋‹น ์•ฑ์„ build ํ•ด์„œ app-debug.apk ๋ผ๋Š” ์ด๋ฆ„์˜ apk file ์„ ๋งŒ๋“ค์—ˆ๋‹ค. - AVD A ์— ์„ค์น˜๋œ app-debug.apk ๊ณผ ๋™์ผํ•œ ์•ฑ์„ AVD B์— ์„ค์น˜ํ•˜๊ณ ์ž ํ•œ๋‹ค. Android Studio ์—์„œ terminal ์„ ์—ด๊ฑฐ๋‚˜ apk file ๊ฒฝ๋กœ์—์„œ cmd ์ฐฝ์„ ์—ด์–ด apk file์„ ์„ค์น˜ํ•œ๋‹ค. -r ์˜ต์…˜ : ๋™์ผํ•œ ์ด๋ฆ„์˜ apk file ์ด ์กด์žฌํ•  ๊ฒฝ์šฐ ๊ธฐ์กด์˜ ํŒŒ์ผ์„ ์ง€์šฐ๊ณ , ์ƒˆ๋กœ์šด ํŒŒ์ผ์„ ์„ค์น˜ํ•œ๋‹ค. -t ์˜ต์…˜ : Failure [INSTALL_FAILED_TEST_ONLY: i.. 2021. 7. 28.
[์•ˆ๋“œ๋กœ์ด๋“œ] Error while waiting for device: The emulator process for [AVD name] was killed. 07/28 13:31:09: Launching 'app' on [AVD name]. Error while waiting for device: The emulator process for [AVD name] was killed. ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ์‹คํ–‰ํ•˜๋Š”๋ฐ ์œ„์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋– ์„œ ๋ฌด์—‡์ด ๋ฌธ์ œ์ธ๊ณ ... ํ•˜๋‹ˆ.. ์„ธ ๊ฐ€์ง€ ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ๋‹ค๊ณ  ํ•œ๋‹ค. 1. ์„ค์น˜ ๊ฒฝ๋กœ์— ์˜์–ด๊ฐ€ ์•„๋‹Œ ๊ธ€์ž๊ฐ€ ์žˆ์–ด์„œ 2. ์• ๋ฎฌ๋ ˆ์ดํ„ฐ ์‹คํ–‰์— ํ•„์š”ํ•œ ํ”„๋กœ๊ทธ๋žจ์ด ์•ˆ ๊น”๋ ค์„œ 3. ๋””์Šคํฌ ๊ณต๊ฐ„์ด ๋ถ€์กฑํ•ด์„œ 2๋ฒˆ ๋ฌธ์ œ์— ๋Œ€ํ•œ ํ•ด๊ฒฐ์ฑ… Settings for New Projects > Apprearance & Behavior > System Settings > Android SDK v Intel x86 Emulator Accelerator (HAXM inst.. 2021. 7. 28.
[์•ˆ๋“œ๋กœ์ด๋“œ] findViewById ๊ทธ๋ฆฌ๊ณ  View Binding - ๊ณตํ†ต activity_main.xml ์ฝ”๋“œ - ๊ธฐ๋ณธ MainActivity.java ์ฝ”๋“œ package com.devshin93.apktest; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } } - findViewById ์ ์šฉํ•œ MainActivity.java ์ฝ”๋“œ pac.. 2021. 7. 28.
[์•ˆ๋“œ๋กœ์ด๋“œ] Dex ํŒŒ์ผ ๊ตฌ์กฐ๋Š” ์–ด๋–ป๊ฒŒ ๋˜์–ด ์žˆ๋Š”๊ฐ€ / Smali Code ์ถœ์ฒ˜: Dex ํŒŒ์ผ ๊ตฌ์กฐ๋Š” ์–ด๋–ป๊ฒŒ ๋˜์–ด ์žˆ๋Š”๊ฐ€ Dex ํŒŒ์ผ ๊ตฌ์กฐ๋Š” ์–ด๋–ป๊ฒŒ ๋˜์–ด ์žˆ๋Š”๊ฐ€ ์ผ๋‹จ Dex ํŒŒ์ผ์ด๋ž€ ๋ฌด์—‡์ผ๊นŒ์— ๋Œ€ํ•ด ์•Œ์•„ ๋ด…์‹œ๋‹ค. 1.Dex ๋ž€? Dex์—๋Š” Android ๋Ÿฐํƒ€์ž„์—์„œ ๊ถ๊ทน์ ์œผ๋กœ ์‹คํ–‰๋˜๋Š” ์ฝ”๋“œ๊ฐ€ ํฌํ•จ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ฆ‰ ๊ธฐ๊ณ„์–ด๋กœ ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์„ ๋””์ปดํŒŒ์ผ ํ•˜๋ฉด smail ์ฝ”๋“œ r-ever-scp.tistory.com ์ผ๋‹จ Dex ํŒŒ์ผ์ด๋ž€ ๋ฌด์—‡์ผ๊นŒ์— ๋Œ€ํ•ด ์•Œ์•„ ๋ด…์‹œ๋‹ค. 1.Dex ๋ž€? Dex์—๋Š” Android ๋Ÿฐํƒ€์ž„์—์„œ ๊ถ๊ทน์ ์œผ๋กœ ์‹คํ–‰๋˜๋Š” ์ฝ”๋“œ๊ฐ€ ํฌํ•จ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ฆ‰ ๊ธฐ๊ณ„์–ด๋กœ ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์„ ๋””์ปดํŒŒ์ผ ํ•˜๋ฉด smail ์ฝ”๋“œ๊ฐ€ ๋˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ํ”ผ์ฝ”๋Š” ์ž๋ฃŒ๋“ค์„ ๋งŽ์ด ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค 2. Dex ํŒŒ์ผ์˜ ๊ตฌ์กฐ ํŒŒ์›Œํฌ์ธํŠธ๊ฐ€ ์ข‹๋„ค์š” ์–ด๋Š ํŒŒ์ผ์ด๋‚˜ ๋น„์Šทํ•˜๊ฒ ์ง€๋งŒ dex ํŒŒ์ผ์€ ํ—ค๋”์™€ ์„น์…˜์œผ๋กœ .. 2021. 7. 22.