Duplicate symbols when linking Android on Rust 1.60 #415
Labels
Android
Only Android related issues
Java/JNI
Case specific only for Java/JNI interface generation
may be bug
When building multiple crates that export Android APIs via flapigen, the final linking step fails with the error:
ld error: duplicate symbol: JNI_OnLoad
. This only happens on Rust 1.60 and not older versions. This is caused because of rust-lang/rust#83822, which removes support for duplicate symbols on Android targets.The text was updated successfully, but these errors were encountered: