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]
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?
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