编程语言
首页 > 编程语言> > android开发 [CXX1104] NDK from ndk.dir at C:\Java\androidSdk\ndk\21.1.6352462 had version [21.1.63

android开发 [CXX1104] NDK from ndk.dir at C:\Java\androidSdk\ndk\21.1.6352462 had version [21.1.63

作者:互联网

android开发 [CXX1104] NDK from ndk.dir at C:\Java\androidSdk\ndk\21.1.6352462 had version [21.1.6352462] which disagrees with android.ndkVersion [21.0.6113669]

  1. 问题描述

    [CXX1104] NDK from ndk.dir at C:\Java\androidSdk\ndk\21.1.6352462 had version [21.1.6352462] which disagrees with android.ndkVersion [21.0.6113669]

  2. 问题原因

    build.gradle使用指定的ndkVersion版本为21.0.6113669
    android {
    	ndkVersion "21.0.6113669"
    	...
    }
    local.properties里配置ndk版本为21.1.6352462
    ndk.dir=C\:\\Java\\androidSdk\\ndk\\21.1.6352462
    sdk.dir=C\:\\Java\\androidSdk
    
    导致ndk配置和使用的版本不一致
    
  3. 解决方法

    Android studio -> SDK manager ->Android SDK ->SDK Tools下载对应版本ndk

    修改build.gradle配置的ndkVersion和local.properties里配置的ndk版本一致即可

标签:ndk,Java,6352462,ndkVersion,21.1,android
来源: https://www.cnblogs.com/yongfengnice/p/16309413.html