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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With