googlesamples/android-vulkan-tutorials

NativeActivity does not exist

FlightBlaze opened this issue · 3 comments

I am trying to run this tutorial app on my Android 11. Installs successfully, I can start it from the home screen, but not from the IDE

05/18 13:05:51: Launching 'app' on samsung SM-A405FM.
Install successfully finished in 8 s 358 ms.
$ adb shell am start -n "com.google.vulkan.tutorial.two/android.app.NativeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "com.google.vulkan.tutorial.two/android.app.NativeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.google.vulkan.tutorial.two/android.app.NativeActivity }
Error type 3
Error: Activity class {com.google.vulkan.tutorial.two/android.app.NativeActivity} does not exist.

Error while Launching activity
ggfan commented

The command seems to be: adb shell am start -n "com.vulkan.tutorials.two/android.app.NativeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER, it uses the "applicationId" rather than the package name. You may try it out, it could also be something specific to Samsung's OS if it still fails. In summary, it is not clear what would be the exact root cause of your failure.

What is the symptoms when IDE failed to start? if you open your logcat window, do you see the expected error message from validation's layer? This sample is just to show how to use the validation layer, embedded an error on purpose so this app will crash (but I think you already knew this, as you could start it manually from the phone).

Same issue here. Changing package name from 'com.google.vulkan.tutorial.xxx' to 'com.google.vulkan.tutorials.xxx' fixed the problem.

ggfan commented

this should be fixed now. thank you for reporting the issue.