Problem connecting MongoDB database with Android

Hello. I’ve been trying to port my .NET MAUI app to Android without success. I connected to MongoDB Atlas to test my cross platform application on Android device (Android 13 - API 33). On Windows it shows no problem but when i try to run it on visual studio, the error says ‘System.ArgumentOutOfRangeException: ‘List of configured name servers must not be empty. Arg_ParamName_Name, servers’’ and the app crashes. I removed the +srv from connection string and the problem resolved but the data disappeared. I use visual studio 2022
Here is the screenshot of app working on windows

Here is the screenshot with the issue

Can someone help me? I’m new to MongoDB.