Android SDK Manager Install Specific Version of NDK Bundle

后端 未结 3 1664
臣服心动
臣服心动 2021-02-14 08:55

I\'m trying to install NDK 15c and I can\'t seem to figure out how to tell sdkmanager the version. If I run

sdkmanager \"ndk-bundle\"

I will ge

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-14 09:50

    If you're using Gradle plugin 3.5 or later (in beta at time of writing, but will be out soon), add the following to your build.gradle:

    android {
        ndkVersion "19.2.5345600" // NDK r19c
    }
    

    If you're using an older Gradle plugin, you can download old NDK releases from https://developer.android.com/ndk/downloads/older_releases and point ndk.dir in your local.properties file at that instead.

提交回复
热议问题