Is there any way to debug a net maui application from Android visual studio emulator ?
my application is trying to access a service from localhost and the connection can't be established
I tried everthing i found in the web unsuccessfully because this file
network_security_config.xml is never found
this is the Android manifest first line:
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:allowBackup="true" android:networkSecurityConfig="@xml/network_security_config" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
this is the network_security_config.xml content:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">10.0.2.2</domain>
</domain-config>
</network-security-config>
I saved this file inside Platforms/Android/Resources/xml folder but nothing
then I tried in this path
my Project/Resources/Android/xml but nothing
and in the build action I wrote nothing but the file is never found
The android application has this base url: https://10.0.2.2
It's one month I try to find a solution....
Do you
Hi Walter Martin,
We have not come across the reported issue in our end. We have shared the below general points that can be ensured.
If you still face any issues, you can try creating a discussion in the MAUI community: dotnet/maui · Discussions · GitHub
Regards,
Brundha V
I don't know if this is the source of problem but in the list of options of the "build action" I don't have the " AndroidResource" selection
I selected "MauiAsset"
Hi Walter,
Since the issue you are facing is at the application level, Can you please try raising a query in the public forums or .NET MAUI discussion community that we previously shared?
Regards,
Prithis I