NDK Resolution Outcome: Project settings: Gradle m

2019-08-25 04:09发布

问题:

After update android Studio and gradle to 3.5 I have this error:

NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN

I changed gradle version from build-gradle to 3.4.2 but it's doesn't useful

回答1:

I migrate to AndroidX and the problem was fixed |:

Refactor - migrate to AndroidX



回答2:

I was having same issue after upgrading my android studio. You just need to open local.properties & change ndk.dir path to your NDK path.

Code:
ndk.dir=D:\Android\SDK\ndk-bundle
sdk.dir=D:\Android\SDK



回答3:

You can download NDK from File>Project Structur>Choosing SDK location from left panel and pressing Download from NDK location part.