Android 编译breakpad报错 NDK is missing a "platforms" directory. If you are using NDK, verify the ndk...

> Configure project :breakpad-build

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/gaoyuanpeng/Library/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.

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring project ':breakpad-build'.

Caused by: java.lang.NullPointerException
    at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787)
    at com.android.build.gradle.internal.ndk.NdkHandler.getPlatformVersion(NdkHandler.java:159)

尝试步骤:

1.看看ndk文件夹里面有没有"platforms"文件夹,如果没有就建立一个

2.查看ndk是否下载成功,如果下载失败会丢失文件

image.png

3.看看local.properties是否配置正确

你可能感兴趣的:(Android 编译breakpad报错 NDK is missing a "platforms" directory. If you are using NDK, verify the ndk...)