웹프로그래밍/react-native
리액트 네이티브 SDK location not found 에러
chunkind
2023. 9. 25. 12:12
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Could not determine the dependencies of null. > SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/ck/git/September/september_front/android/local.properties'. |
해결책
나의 경우에는 SDK경로를 찾지못한 경우였다.
$ vim(또는 vi) ~/.zshrc
export ANDROID_SDK=/Users/ck/Library/Android/sdk
export PATH=/Users/ck/Library/Android/sdk/platform-tools:$PATH
.zshrc의 내용을 위에 두줄 맨아래 추가하고
$ source ~/.zshrc
명령어 치고 다시 시작하니 잘되었다!!
반응형