Mongo DB driver (MongoDB cluster on Docker) not compatibile with java in Android Studio, Gradle

I checked the compatibility matrix, tried to run java sdk 11/17 with mongo db driver 4.9.0/4.8.0/4.8.2. What can I do?

If you’re using Atlas, use the MongoDB Realm and Device Sync Java SDK

If you’re using on premise, build an ApolloGraphQL server, and load up the JavaScript based Apollo client to the mobile app, and then the Apollo GraphQL server append to the MongoDB Database, and just connect the two services.