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

๋นˆ ๊ตฌ๋ฉ ์ฑ„์šฐ๊ธฐ

[Android Studio][Gradle] keystore.properties (No such file or directory) ๋กœ๊ทธ - ์˜ˆ์ œ ํ”„๋กœ์ ํŠธ ํ™•์ธ์šฉ

์ฐธ๊ณ  

https://stackoverflow.com/questions/49008571/gradle-build-failing-due-to-keystore-properties-file-missing

 

Gradle build failing due to keystore.properties file missing

I'm trying to use this alarm app on Android Studio - https://github.com/philliphsu/ClockPlus . However, gradle build is failing (error message below). Please let me know what needs to be fixed for ...

stackoverflow.com

 

 

๋ฌธ์ œ ์ƒํ™ฉ

์˜ˆ์ œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋ฐ›๊ณ  Android Studio์—์„œ ํ”„๋กœ์ ํŠธ import๊นŒ์ง€ ์ž˜ ์ง„ํ–‰๋๋Š”๋ฐ, Gradle ๋นŒ๋“œ๊ฐ€ ์‹คํŒจํ–ˆ๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋กœ๊ทธ๊ฐ€ ๋‚˜์™”๋‹ค.

 

{ํ”„๋กœ์ ํŠธ app ๋ชจ๋“ˆ ์œ„์น˜}/keystore.properties (No such file or directory)

 

์ด์Šˆ ๋ฐœ์ƒ ์ด์œ  ํŒŒ์•…

๋‹ด๋‹น์ž๋ถ„๊ป˜์„œ ๋ณด์•ˆ ์ƒ keystore.properties๋ฅผ ๊นƒ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ์— ์˜ฌ๋ฆฌ์ง€ ์•Š์€ ๊ฒƒ์œผ๋กœ ์ถ”์ธก๋œ๋‹ค. 

์ด๋Ÿฐ ๊ฑด ๋ฏธ๋ฆฌ ๊ณต์œ ํ•ด์ค˜์•ผํ•˜์ง€ ์•Š๋‚˜...๐Ÿคจ 

 

์œ„์˜ ์Šคํƒ์˜ค๋ฒ„ํ”Œ๋กœ์šฐ์˜ ์ฝ”๋ฉ˜ํŠธ๋ฅผ ๋ณด๊ณ  ๋ฌธ์ œ ํ•ด๊ฒฐ์„ ์œ„ํ•ด์„œ release ๋ชจ๋“œ ๋Œ€์‹  debug ๋ชจ๋“œ๋กœ build variants๋ฅผ ๋ณ€๊ฒฝํ•˜๋ฉด ๋œ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ์•˜๋‹ค.

๊ทธ๋Ÿฐ๋ฐ ์ตœ์ดˆ๋กœ ๋นŒ๋“œํ•˜๋Š” ๊ฑฐ๋ผ์„œ ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค๊ฐ€ ํ”„๋กœ์ ํŠธ์˜ build variants ์ •๋ณด ์ž์ฒด๋ฅผ ๋ณด์—ฌ์ฃผ์ง€ ๋ชปํ–ˆ๋‹ค. ๊ทธ๋ ‡๊ฒ ์ง€... ๋นŒ๋“œ๊ฐ€ ๋˜์–ด์•ผ์ง€ release ๋ชจ๋“œ๊ฐ€ ์žˆ๋Š”์ง€ debug ๋ชจ๋“œ๊ฐ€ ์žˆ๋Š”์ง€ ์•Œ๊ฒ ์ง€...

 

๋ฌธ์ œ ํ•ด๊ฒฐ

์˜ˆ์ œ ํ”„๋กœ์ ํŠธ ์‹คํ–‰์„ ๊ตฌ์ง€ release๋กœ ํ•  ํ•„์š”๋Š” ์—†๊ณ , gradle ํŒŒ์ผ์—์„œ ์ฝ๊ณ  ์žˆ๋Š” keystore.properties๋Š” ์กด์žฌํ•ด์•ผ๋งŒ ํ•ด์„œ,  ๊ฐ€๋ผ๋กœ keystore.properties ์ด๋ฆ„์˜ ํŒŒ์ผ์„ gradle ํŒŒ์ผ์— ๊ธฐ๋ก๋˜์–ด ์žˆ๋Š” ์œ„์น˜์— ๋งŒ๋“ค์–ด์คฌ๋‹ค. ํŒŒ์ผ ๋‚ด์šฉ์€ ์œ„์—์„œ ์ฐธ์กฐํ•œ ์Šคํƒ์˜ค๋ฒ„ํ”Œ๋กœ์šฐ์˜ ๋‹ต๋ณ€์— ๋‚˜์˜จ ์˜ˆ์‹œ ํŒŒ์ผ์„ ๋ณต์‚ฌํ•ด์„œ ๋„ฃ์–ด์คฌ๋‹ค. 

 

๊ฒฐ๊ณผ

Gradle ๋นŒ๋“œ ์„ฑ๊ณตํ–ˆ๋‹ค. build variants๋ฅผ debug๋กœ ์ˆ˜์ •ํ–ˆ๋‹ค. ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๋กœ ์•ฑ ์‹คํ–‰๋„ ์ž˜ ๋œ๋‹ค.