Replies: 4 comments 1 reply
-
|
Because i use #[tokio::main]
#[no_mangle]
async fn android_main(app: AndroidApp) { |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
for the fist question, i fixed it by fix the lib name in [lib]
name="something"
crate_type=["cdylib"]Still not sure about the second one. |
Beta Was this translation helpful? Give feedback.
-
|
I transfered this here from the top-level org, as I felt it might have a greater chance of being answered here (I can't provide any input to the discussion myself). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm currently try to run my rust app on android.
I've followed the
na-mainloopfromrust-android-examples,then build and run the app using
From the log printed in console, i can see that my app is running, but failed because of some permission.
Now, i want to add the UI and some permission (which i believe will be in the manifest file).
I've tried these:
System.loadLibraryto load my libarygradlew buildgradlew installBuildadb shell am start -n co.realfit.nasubclassjni/.MainActivitybut i see almost nothing in the logcat.
and i just realized that this example doesn't have UI, so i move to another example
<meta-data android:name="android.app.lib_name" android:value="mylib" />.soislibsomething.so, i do thisSystem.loadLibrary("something")but i got this in the logcat
My question:
Beta Was this translation helpful? Give feedback.
All reactions