From 99e885aea3e2ee4490324bccae883174c6b1b287 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 17 Aug 2024 22:32:40 -0500 Subject: [PATCH] add clear instructions for .so file --- docs/src/getting-started/rust-in-android.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/getting-started/rust-in-android.md b/docs/src/getting-started/rust-in-android.md index 71bb9a4a..e01ece3a 100644 --- a/docs/src/getting-started/rust-in-android.md +++ b/docs/src/getting-started/rust-in-android.md @@ -106,7 +106,8 @@ Run ```bash make build-android ``` -Copy the .so file to jni directory in android app. +Copy the .so file from 'target/x86_64-linux-android/release/libexample_rust_project.so' to +'app/src/main/jni/x86_64/libexample_rust_project.so' so the android app can read compiled native code. Use the library like any other library. ```java package com.example.rust_example