apply plugin: 'com.android.application' apply plugin: 'net.fornwall.android-vulkan-validation' android { namespace "net.fornwall.vulkan.example" ndkVersion "26.1.10909125" defaultConfig { applicationId "net.fornwall.vulkan.example" minSdkVersion 28 compileSdk 34 targetSdkVersion 34 versionCode 1 versionName "0.1.0" // Shader compilation directives, put glsl shaders to app/src/main/shaders // android studio will pick them up and compile them into APK/assets/shaders // KNOWN ISSUE: if shaders having errors, it takes long time for gradle to timeout // but it will eventually time out and complain about shader compiling shaders { glslcArgs.addAll(['-c', '-g']) } externalNativeBuild { cmake { // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' abiFilters 'arm64-v8a' arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static' } } } externalNativeBuild { cmake { version '3.27.7' path 'src/main/cpp/CMakeLists.txt' } } buildTypes.release.minifyEnabled = false buildFeatures.prefab = true } dependencies { implementation 'androidx.appcompat:appcompat:1.6.1' implementation "androidx.games:games-activity:2.0.2" }