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 경로를 잘 못찾아서 발생한 에러이다..
* 해결책
.bash_profile 이나 .zshrc 와같은 설정파일에 적용하는 방법도 있지만...
내경우에는 android 프로잭트 root 밑에 local.properties 파일을 만들어 sdk 경로를 지정해 주어 사용하였다.
android/local.properties 파일에 SDK 경로 설정
sdk.dir=/Users/ck/Library/Android/sdk
반응형