位于 ~/Library/Android/sdk/ndk-bundle 的 NDK 没有 source.properties 文件 [英] NDK at ~/Library/Android/sdk/ndk-bundle did not have a source.properties file

查看:51
本文介绍了位于 ~/Library/Android/sdk/ndk-bundle 的 NDK 没有 source.properties 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Macbook 中的 Android Studio 更新至 4.1,但更新后无法运行应用程序.它给出以下错误

I have updated Android Studio to 4.1 in Macbook but not able to run app after updating. It is giving following error

Execution failed for task ':app:stripDebugDebugSymbols'.
NDK at ~/Library/Android/sdk/ndk-bundle did not have a source.properties file

推荐答案

build.gradle 文件中指定 ndk 版本后,它正在工作

After specifying ndk version in build.gradle file it is working

android {
        ndkVersion '21.3.6528147'
    }

并且在 local.properties 中删除以下内容,因为它已被弃用并且还与路径冲突:

And inside local.properties remove the following since it's deprecatedand also conflicts with path:

ndk.dir=~/Library/Android/sdk/ndk-bundle

这篇关于位于 ~/Library/Android/sdk/ndk-bundle 的 NDK 没有 source.properties 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆