After upgrading gradle of my project (and library attached to it) from 2.1.3 -> 2.2.0 it doesn't build anymore and it says:
Error:Execution failed for task ':app:transformNative_libsWithStripDebugSymbolForDebug'. java.lang.NullPointerException (no error message)
Anyone have a clue on why this is?
You need to change the following lines in build.gradle file:
Maybe you can update the ndk version. I update the ndk version from r10 to r13,and finally it worked.
I found answer here: https://stackoverflow.com/a/40117446/1088975
The point is to set both targetSdkVersion and compileSdkVersion to 22"
You might want to check if the location of your NDK folder has any white space in it...if it has you can move your
ndk folder
to thec:\
drive and rebuildAlso, check the gradle versiom of your app and either upgrade or download later version, because some ndk versions do not support later gradle version