app:mergeDebugResources ์์ ์ ๋ฌธ์ ๊ฐ
์ค๋ฅ:
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Crunching Cruncher abc_tab_indicator_mtrl_alpha.9.png failed, see logs
๋ฐฉ๊ธ ์ด ๋ช ๋ น์ ์ฌ์ฉํ์ฌ ์๋ก์ด ๋ฐ์ ๋ค์ดํฐ๋ธ ํ๋ก์ ํธ๋ฅผ ๋ง๋ค์์ต๋๋ค. ํ๋ฌ๊ทธ์ธ ๋ฐ ๊ธฐํ ์ฝ๋๊ฐ ์์ง ์ถ๊ฐ๋์ง ์์์ต๋๋ค.
react-native init MyProject
package.json
์์ React ๋ฒ์ 0.24.1์ด ์ค์น๋์์ต๋๋ค.
{
"name": "TestReact",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "^0.14.8",
"react-native": "^0.24.1"
}
}
Android์์๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ฉฐ iOS์์๋ ๋์ผํ ๋ฌธ์ ๊ฐ ์๋์ง ํ์คํ์ง ์์ต๋๋ค.
๊ฐ๋ฐ์ ์ํด Ubuntu๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
gradle.properties
ํ์ผ์ ๋ฐ๋ฅด๋ฉด Gradle์ ๋ฒ์ 2.4์
๋๋ค.
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
๊ฐ์ ๋ฌธ์ ๊ฐ ์๋ ์ฌ๋์ ์ํด. ์ด๊ฒ์ ๋๋ฅผ ์ํด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค.
64๋นํธ OS์ ๋ฌธ์ ์ ๋๋ค. aapt๋ฅผ ์ฌ์ฉํ ์ ์๊ธฐ ๋๋ฌธ์ ๋ค์ 2๊ฐ์ ํจํค์ง๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค.
sudo apt-get install lib32stdc++6 lib32z1
๊ฐ์ฌํฉ๋๋ค. ์ ์๊ฒ ํจ๊ณผ์ ์ ๋๋ค.
๊ฐ์ฌ ํด์! ์ ์๊ฒ๋ ํจ๊ณผ๊ฐ ์์์ต๋๋ค. :+1:
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๊ฐ์ ๋ฌธ์ ๊ฐ ์๋ ์ฌ๋์ ์ํด. ์ด๊ฒ์ ๋๋ฅผ ์ํด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค.
http://stackoverflow.com/questions/22701405/aapt-ioexception-error-2-no-such-file-or-directory-why-cant-i-build-my-grad
64๋นํธ OS์ ๋ฌธ์ ์ ๋๋ค. aapt๋ฅผ ์ฌ์ฉํ ์ ์๊ธฐ ๋๋ฌธ์ ๋ค์ 2๊ฐ์ ํจํค์ง๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค.