Receiving a warning “There is no“ platforms ”directory in the NDK. Without NDK

I have a project that uses only the Android SDK, not the NDK, but I get warnings when I create with gradle about the NDK:

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 /usr/local/opt/android-sdk/ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

Sounds like a pretty clear warning. I do not use ndk, so android-sdkno ndk-bundle. The problem is that I don't have a set ANDROID_NDK_HOME, and my local.propertiesfile (which seems to be generated by Android Studio) does not install NDK:

sdk.dir=/usr/local/opt/android-sdk

I have an ANDROID_HOME environment variable:

ANDROID_HOME=/usr/local/opt/android-sdk

The system is mac, but we seem to get the same problem in Docker. Does anyone know how to get rid of this warning?

+6
1

, :

Android gradle 2.3 (Com.android.tools.build:gradle:2.3.0).

( BR) . .

, android gradle 2.2.2

+7

All Articles