pub fn check_api(api: u32) -> Result<()>
The generated Java runtime needs API 26+ even though the NDK itself can link for API 21.