这个一般是旧工程在新 android studio 中打开

"No toolchains found in the NDK toolchains folder for ABI" 需要安装ndk

file -> settings -> android sdk -> sdk tools -> ndk(side by side) 勾选进行安装。 file -> project structure -> sdk location -> android ndk location 里面选择 ndk

"NDK does not contain any platforms” 这个需要安装低版本 ndk

file -> settings -> android sdk -> sdk tools -> ndk(side by side) 勾选 右下角的 show package details,选择低版本,比如说 20.0.5594570 ,安装低版本。

file -> project structure -> sdk location -> android ndk location 选择低版本的 ndk.

参考:

https://blog.csdn.net/qq_24118527/article/details/82867864
https://blog.csdn.net/hiphopxiao/article/details/112220228#:~:text=%E5%9C%A8%20Android%20Studio%E4%B8%AD%E9%85%8D%E7%BD%AE%20NDK%20%E6%97%B6%EF%BC%8C%E5%8F%AF%E8%83%BD%20%E5%87%BA%E7%8E%B0NDK%20does%20not,does%20not%20contain%20any%20platforms%20.%20%E6%89%BE%E4%BA%86%E5%BE%88%E5%A4%9A%E8%B5%84%E6%96%99%EF%BC%8C%E4%B8%8D%E7%9F%A5%E9%81%93%E4%BB%80%E4%B9%88%E5%8E%9F%E5%9B%A0%E3%80%82%20%E5%90%8E%E9%9D%A2%E6%98%AF%E9%80%9A%E8%BF%87%E4%B8%8B%E8%BD%BD%E6%97%A9%E5%89%8D%E7%9A%84%E7%89%88%E6%9C%AC%E8%A7%A3%E5%86%B3%E4%BA%86%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%8C%E8%AE%B0%E5%BD%95%E4%B8%8B%3A

标签: application

添加新评论