i installed vulkan , i made sample cube apk from android studio ,
but while i am install and run my apk to my snapdragon board which supports vulkan - studio fails to load the library,
and it says : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.qualcomm.vulkan.cube/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/app/com.qualcomm.vulkan.cube-2/lib/arm/libvulkan-cube.so
and khronos registry also said that snapdragon 820 having adreno 530 supports vulkan but i couldnt see the libvulkan.so into /system/lib/
so i am confused and hard to say that whats wrong ..
thanks in advance.
Snapdragon 820 is capable of running Vulkan. If libvulkan.so is not found in system/lib, then it's possible the build on your device may not have Vulkan support for some reason. Can you confirm the exact hardware you are runnng on, and any Android build informaton (version #, date)...
thanks @mhfeldma for ur reply ,
actually i am using marshmallow on snapdragon820 having release tag LA.HB.1.3.2-16800-8x96.0 ,
and i pushed libvulkan.so manually in /system/lib/ so it should work , right !! but unforunately it didnt work.
and now i am getting different error too and that is = E/vulkan: failed to load vulkan hal: No such file or directory (-2).
and while it starts to execute sample.cpp file , it failed to create even instance also = bool VkSample::CreateInstance(): assertion "(!ret)" failed.
please help me to get rid of this .
any suggestion would be helpful.
Use a 3rd party tool to check if your device really has Vulkan support, like AIDA64 app, available at Google Play Store.
Once Vulkan is confirmed, make sure your native library is correctly installed along side your app. You may lose your JNI's *.so file in this transport ( very unlikely, but it happens sometimes).
If you have a deadline in your vulkan project, go for a Nexus device, like Nexus 5X, and enter Android beta program to get Android Nougat (7.0) in OTA. Easy and pailnless, no root necessary. Just run and be happy. I did it and I assure it works.
thnks for advice @Alessandro,
and i have checked through AIDA64 app it is not showing me about vulkan support - no vulkan device found.
and even i have cross checked that native libraries along with my app perfectly available in its place ,
perhaps i have to udpate to nougate or there would be an issue in my release that may not have install vulkan support.
and if you know , how can i add my vulkan support externally in my android release ?
Hardik - adding Vulkan support is generally not possible as the drivers and Vulkan loader would need to come from the hardware vendor, and it's not clear who that is in this case.