Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade NDK to r8e

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?

like image 788
Walid Avatar asked Apr 27 '16 15:04

Walid


1 Answers

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

like image 138
IgorGanapolsky Avatar answered Sep 21 '22 13:09

IgorGanapolsky