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.
0 replies
-
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.
0 replies
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm currently try to run my rust app on android.
I've followed the
na-mainloop
fromrust-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.loadLibrary
to load my libarygradlew build
gradlew installBuild
adb shell am start -n co.realfit.nasubclassjni/.MainActivity
but 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" />
.so
islibsomething.so
, i do thisSystem.loadLibrary("something")
but i got this in the logcat
My question:
Beta Was this translation helpful? Give feedback.
All reactions