[SOLVED] Android build failed 'generateJsonModelDebug'

cocos compile -p android --android-studio

fails with

BUILD FAILED

Total time: 1.713 secs
Stopped 0 worker daemon(s).
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ‘:PushArena:generateJsonModelDebug’.] from daemon DaemonInfo{pid=16830, address=[ac2f964c-f52f-437b-9859-33d39b72e142 port:33137, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1523367442890, context=DefaultDaemonContext[uid=766c5c04-cda5-4008-a731-bec508b5380d,javaHome=/usr/lib/jvm/java-8-openjdk-amd64,daemonRegistryDir=/home/ilya/.gradle/daemon,pid=16830,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
Error running command, return code: 1.

i have no spaces in path like here Failed to build generateJsonModelDebug

android-sdk is installed
ndk is installed
fresh project compiles good

CMakeLists.txt differs from fresh project only with include files set(GAME_HEADERS) and set(GAME_SRC)

My issue is also on github (https://github.com/cocos2d/cocos2d-x/issues/18769)

What ideas?

Thanks all for the active help. Answer on github