如何将NDK降级到R8E [英] How to downgrade NDK to r8e

查看:88
本文介绍了如何将NDK降级到R8E的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将一个android项目从Eclipse迁移到了Android Studio,并更新了NDK.构建解决方案时,我遇到此错误:

I migrated an android project from Eclipse to Android Studio, and updated the NDK. When I build the solution I had this error:

错误:(61,2)错误:格式不是字符串文字,并且没有格式参数[-Werror = format-security]

Error:(61, 2) error: format not a string literal and no format arguments [-Werror=format-security]

这是错误

我找不到任何解决方案,因此我认为我必须降级NDK. 还有另一种解决方法吗?如果没有,如何将NDK降级到r8e?

I can't find any solution, so I am thinking that I have to downgrade the NDK. Is there another way to resolve this? If not, how can I downgrade my NDK to r8e?

推荐答案

要降级ndk,您必须使用 wget 从互联网上将其删除,并将其移至Android SDK目录中:

In order to downgrade your ndk, you will have to pull it from the internet with wget and move it into your Android SDK dir:

解压缩android-ndk-r13b-darwin-x86_64.zip

unzip android-ndk-r13b-darwin-x86_64.zip

mv android-ndk-r13b/$ {ANDROID_HOME}/ndk-bundle

mv android-ndk-r13b/ ${ANDROID_HOME}/ndk-bundle

这篇关于如何将NDK降级到R8E的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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