This is a quick guide to get Vulkan validation layers support for a Flutter application. This guide assumes that you've created the application with flutter create
, otherwise the locations might vary.
android-binaries-1.3.231.1.zip
.arm64-v8a armeabi-v7a x86 x86_64
${FLUTTER_APP}/android/app/src/main/vklibs
. The layout should look similar to:src/main/vklibs/ arm64-v8a/ libVkLayer_khronos_validation.so armeabi-v7a/ libVkLayer_khronos_validation.so x86/ libVkLayer_khronos_validation.so x86-64/ libVkLayer_khronos_validation.so
Add the following line to ${FLUTTER_APP}/android/app/build.gradle
, android > sourceSets
section: main.jniLibs.srcDirs += 'src/main/vklibs'
.
This should enable Vulkan validation layers on your Android application.