How to downgrade NDK to r8e

北战南征 提交于 2019-12-07 03:02:45

问题


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

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

Here is the error

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?


回答1:


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:

  • wget https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip

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

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



来源:https://stackoverflow.com/questions/36894961/how-to-downgrade-ndk-to-r8e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!