Open Dispersia opened 1 year ago
Error: String `` is not a PID
from cargo-apk
means that the app either hasn't started yet (and we do not recheck this in a loop for some duration of time), or has already crashed.
The PID is only used to filter logs to the application that was built and installed as Android's unfiltered logs are ridiculously spammy, but you could use them to figure out the reason your app fails to start (adb logcat -v color
):
I am using cargo apk run instead of what's in the instructions there, but I believe that does the same thing or is that wrong?
That is not a good assumption to make. While cargo apk
and cargo ndk
initially build an identical libagdk_winit_wgpu.so
, cargo apk
packages that up into an APK and installs it on the phone whereas the README clearly has more steps to build the Java counterpart of the app via gradle
, and finally package the Rust library and Java counterpart into an APK to install it.
Transferring this to the examples repo as it seems to be an issue with reading and executing the documentation/README rather than GameActivity
itself.
Hello, trying to write a small game for android, however having issues with the GameActivity type. NativeActivity appears fine for me, however upon trying to use GameActivity, I get
Error: String `` is not a PID
. This happens even in running the examples such as:https://github.com/Dispersia/rust-android-examples/tree/main/agdk-winit-wgpu (slightly modified to work with cargo apk run in my environment + proc_macro was broken in latest nightly)
I am using cargo apk run instead of what's in the instructions there, but I believe that does the same thing or is that wrong?
My environment is running off of Windows Subsystem for Android as I don't have access to an Android phone. If there is any other information I can provide let me know, I didn't know where to get logs that might explain more. Thanks!