androidcertificatemauiandroid-network-security-config

ERROR: "Trust anchor for certification path not found" - .NET MAUI


There are some possible solution.

But I received an error: "resource xml/network_security_config (aka com.companyname.test:xml/network_security_config) not found"

Where do I need to create a config XML file to have access to the Android manifest file?

I just want to linked xml file to the android:networkSecurityConfig in Android manifest.


Solution

  • If you want to test .NET MAUI app on localhost API and avoid issue for SSL cert, you can use a tool https://ngrok.com/

    "ngrok" will put localhost on the internet - it's working for me