Android Studio问题解决:Location specified by ndk.dir () did not contain a valid NDK and so couldn‘t sati

一、遇到问题

> Configure project :app
Location specified by ndk.dir () did not contain a valid NDK and so couldn't satisfy the required NDK version 20.0.5594570

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> NDK not configured. Download it with SDK manager. Preferred NDK version is '20.0.5594570'. Log: E:\umeng\CrashDemo-1.2.0\app\.cxx\ndk_locator_record.json

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

Android Studio问题解决:Location specified by ndk.dir () did not contain a valid NDK and so couldn‘t sati_第1张图片

二、解决问题

打开local.properties

Android Studio问题解决:Location specified by ndk.dir () did not contain a valid NDK and so couldn‘t sati_第2张图片

找到ndk目录,并写进去
Android Studio问题解决:Location specified by ndk.dir () did not contain a valid NDK and so couldn‘t sati_第3张图片

Android Studio问题解决:Location specified by ndk.dir () did not contain a valid NDK and so couldn‘t sati_第4张图片

觉得好,就一键三连呗(点赞+收藏+关注)

你可能感兴趣的:(Android,android,ndk,ndk.dir,android,studio)