[Solved]Vulkan crashes when creating VkInstance

I have been trying to use vulkan recently, but i ran into this problem. Whenever i try to create a new vulkan instance, it crashes with


# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffdd84a6e07, pid=4536, tid=0x0000000000001bcc

any help would be appreciated.

Thanks in advance anyway.

Edit:
It was all the api version. I updated my drivers and it worked.