I just imported a new project, called TestGame, an compiled it using ’ cocos compile -p android’. I tried to run it initially but got an NDK not found error so I added ‘ndk.dir=/Applications/Android/android-ndk-r10d’ to local.properties. Now I get this error:
Error:Execution failed for task ‘:testGame:compileDebugNdk’.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Applications/Android/android-ndk-r10d/ndk-build’’ finished with non-zero exit value 2
Has anyone copied the gradle example that supports NDK? The Google download link is broken.