https://blog.csdn.net/github_36787585/article/details/82841129

编译错误提示:Gradle sync failed: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.1-all.zip'.

点击Gradle Console

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 D:\AndroidStudioSDK\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

不言而喻,NDK缺少一个“platforms”目录。如果您正在使用NDK,请验证NDK。将dir设置为有效的NDK目录。目前它被设置为D: AndroidStudioSDK\ndk-bundle。如果不使用NDK,请从ANDROID_NDK_HOME或local中卸载NDK变量。属性删除此警告。

这个错误Google 的坑。目前只有兼容最新的NDK版本才能解决。

解决办法:

1.打开SDK Manager

2.勾选上NDK最新版本,安装成功后Apply

3.安装完成后重新build下项目搞定!
————————————————
版权声明:本文为CSDN博主「J_query_foxmail」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/github_36787585/article/details/82841129

错误NDK is missing a “platforms“ directory.相关推荐

  1. 错误NDK is missing a platforms directory.

    编译错误提示:Gradle sync failed: Could not run build action using Gradle distribution 'https://services.gr ...

  2. 解决 NDK is missing a “platforms“ directory.

    Android 项目编译报错: NDK is missing a "platforms" directory. If you are using NDK, verify the n ...

  3. NDK is missing a platforms directory. 问题解决

    问题描述 NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is s ...

  4. Android NDK: WARNING: Ignoring unknown import directory:错误解决方法

     Android NDK: WARNING: Ignoring unknown import directory:错误解决方法 添加NDK模块路径(参考,具体视情况): NDK_MODULE_PATH ...

  5. sshd启动报错解决:Missing privilege separation directory: /run/sshd

    报错: Missing privilege separation directory: /run/sshd解决: # sudo mkdir /run/sshd

  6. 解决 Ubuntu upgrade 常见错误 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw

    解决 Ubuntu upgrade 常见错误 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for - 1 出现的错 ...

  7. python 错误之SyntaxError: Missing parentheses in call to 'print'

    SyntaxError: Missing parentheses in call to 'print' 由于python的版本差异,造成的错误. python2: print "hello ...

  8. 编译错误syntax error : missing ';' before 'type'原因探寻

    在VC6中运行以下代码 //main.c #include <stdio.h> int main() { chara[100]; memset(&a, 0, 100); charb ...

  9. MySQL 服务无法启动--服务没有报告任何错误 ---Failed to find valid data directory.

    系统重装后重新安装mysql环境,各种踩坑.服务无法启动 mysqld --console 查看详细错误:Failed to find valid data directory 发现mysql目录没有 ...

最新文章

  1. Android SurfaceView的生命周期
  2. RxJava学习-使用篇
  3. php用while循环做出1到10的乘积,PHP实现笛卡尔积算法的实例讲解
  4. Node.js 极简笔记
  5. 无法取消 Promise
  6. python基础刷题_数据结构与算法LeetCode刷题(Python)
  7. Ax 2012批量部署报表
  8. web项目开发上传功能
  9. Java实现FTP文件上传和下载
  10. 沟通在日常管理工作中的重要性
  11. 威斯康星大学麦迪逊计算机本科,威斯康星大学麦迪逊分校计算机专业为什么火?申请要求及学费详解!...
  12. 学习笔记 02:关于在某宝上面购买的stm32f103c8t6最小系统开发板如何使用USBtoTTL模块烧录程序的记录
  13. Linux无线网卡驱动更新
  14. 为你的项目搭建sentry并且通过企微推送
  15. Eclipse红叉报错
  16. **servlet生命周期**
  17. 图像格式转换:jpg批量转png
  18. Unity吃豆人敌人BFS广度(宽度)优先算法实现怪物追踪玩家寻路
  19. 三星手机可以装鸿蒙系统吗,国产手机厂商会用鸿蒙系统吗?从这几点分析他们用鸿蒙系统的可能性有多大...
  20. Bootstrap CSS

热门文章

  1. Linux总线驱动设计(1)-总线设备驱动模型
  2. 首个高温红色预警来了,气象预警你了解多少?
  3. 【天池龙珠计划】Python训练营 Task04 Python数据分析:从0完成一个数据分析实战
  4. Faiss(17):IndexIVFPQ文件格式分析
  5. 高斯模糊原理和python实现
  6. 背包算法设计(参考学习)
  7. 软件工程是不是教不怎么会的写程序的人开发软件?
  8. 知情人士称百事与广药集团谈判 密购王老吉
  9. 完全禁止WIN10自动更新的方法
  10. Postgre SQL 简介