gradle assemble[Release/Debug] throwing 'NDK not installed' error
C:..\Vulkan-Samples\build\android_gradle>gradle assembleDebug
FAILURE: Build failed with an exception.
-
Where: Build file 'C:..\Vulkan-Samples\build\android_gradle\app\build.gradle' line: 56
-
What went wrong: A problem occurred evaluating project ':app'.
NDK is not installed
[Env Variables]
ANDROID_HOME=
Able to generate the apk by giving ndk relative path in below instruction in app/build.gradle file. jniLibs.srcDirs += ["../../../../../../../sdks/android_sdk/ndk/25.0.8775105/sources/third_party/vulkan/src/build-android/jniLibs"]
however, none of the samples are running in launched app.
How are you installing the samples? It's possible that the assets didn't get copied over, see https://github.com/KhronosGroup/Vulkan-Samples/blob/master/docs/build.md#3d-models how to manually do that.
In your environment variables, it looks like ANDROID_HOME is getting set to nothing as is GRADLE_HOME. Could you confirm that those are indeed pointing to the full path to your android_sdk directory (could be ~/sdks/android_sdk)
Hi @ritzdzire, any updates on this? The above suggestion fix the problem? Would like to close this out shortly unless there's more to do. Thanks!
Closing. LMK if there's more to do and we can reopen. Thanks.