ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

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

2022-05-25 15:35:29  阅读:72  来源: 互联网

标签:ndk Java 6352462 ndkVersion 21.1 android


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

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有