How to downgrade NDK to r8e

Walid picture Walid · Apr 27, 2016 · Viewed 9.8k times · Source

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?

Answer

IgorGanapolsky picture IgorGanapolsky · Feb 1, 2017

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: