mb64 / android-ndk-rs

Rust bindings to the Android NDK
Apache License 2.0
24 stars 2 forks source link

Hi. You need add #[link(name = "android")] #6

Open Z1W3 opened 3 years ago

Z1W3 commented 3 years ago
#[link(name = "android")] // add this
extern "C" {
    pub fn AAssetManager_fromJava(env: *mut JNIEnv, assetManager: jobject) -> *mut AAssetManager;
}
azw413 commented 2 years ago

I need this too, can't instantiate an AssetManager from java instance otherwise. This is essential if you have a Java application in addition to a native lib i.e. not a purely native activity.