Game right away crashes

Hello, I have a problem.
I changed Android build target in libcocos2dx, google-play-services_lib to 22 and in my project to 22 and now when I try run my game on device it right away crashes (Phone Android version 4.4.2). I try to set build target back to 20 but then I gave a compiler error:

... \proj.android\../cocos2d/cocos/3d/../base/ccRandom.h:103: error: undefined reference to 'rand'.

I’am using cocos 3.6, ndk r10d .
Before that everything worked fine. How I can fix that error ?
Thanks