본문 바로가기
Android/Build Error

[안드로이드][MAC] NDK is missing a platforms directory

by Jay Son 아기 냥이 해린 짱💖 2020. 9. 10.

Android NDK 설치 되지 않아 빌드 에러 발생.

> Configure project :app
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/Json/Library/Android/sdk/ndk.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/Json/Library/Android/sdk/ndk.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 0s
(11:44:12) Json $ 

 

1. Android NDK 다운로드

   - 안정적인 최신 버전을 다운

developer.android.com/ndk/downloads?hl=ko

 

NDK 다운로드  |  Android NDK  |  Android Developers

개발 플랫폼에 맞는 NDK 패키지를 선택합니다. NDK 최신 버전 및 이전 버전의 변경사항에 관한 정보는 NDK 버전 기록을 참조하세요. 현재 이용 가능한 Mac NDK는 서명이나 공증이 되지 않았습니다. And

developer.android.com

현재 MAC 설치 경로

/Users/Json/Library/Android/sdk/ndk

반응형