Skip to content Skip to sidebar Skip to footer

Ndk Code Crashing In Few Htc Lollipop Devices And Few Other Devices By Giving Fatal Signal 11 (sigsegv), Code 2

Below code is used to scale the image border by dragging the edges. It works fine in Moto X, nexus 5x, few other devices and emulators. But it crashes on HTC ONE(Lollipop 5.0.2) an

Solution 1:

I just updated my build.gradle settings ndk configuration and it started to work in every device.

ndk {
            moduleName "native"
            toolchain "clang"
            toolchainVersion "3.5"
            CFlags.add("-DCUSTOM_DEFINE")
            cppFlags.add("-DCUSTOM_DEFINE")
            ldFlags.add("-L/custom/lib/path")
            ldLibs.add("log")
            stl "stlport_static"
        }

Post a Comment for "Ndk Code Crashing In Few Htc Lollipop Devices And Few Other Devices By Giving Fatal Signal 11 (sigsegv), Code 2"