Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Error MSB4064: The “AllowUnsecureUrls” parameter is not supported by the “XamarinDownloadArchives” task without wasting too much if your time.
The question is published on by Tutorial Guruji team.
The question is published on by Tutorial Guruji team.
So, I am getting this error on building Android Release. On debug things are fine. It wont even clean the solution. Things were fine and now after updating to latest Xamarin. This is what my Droid project top few lines look like
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..packagesXamarin.Build.Download.0.6.0buildXamarin.Build.Download.props" Condition="Exists('..packagesXamarin.Build.Download.0.6.0buildXamarin.Build.Download.props')" /> <PropertyGroup>```
Answer
A simple way is set android:usesCleartextTraffic=”true” on you AndroidManifest.xml
android:usesCleartextTraffic="true"
Your AndroidManifest.xml look like
<?xml version="1.0" encoding="utf-8"?> <manifest package="com.dww.drmanar"> <application android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:usesCleartextTraffic="true" android:theme="@style/AppTheme" tools:targetApi="m"> <activity android:name=".activity.SplashActivity" android:theme="@style/FullscreenTheme"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
I hope this will help you.
We are here to answer your question about Error MSB4064: The “AllowUnsecureUrls” parameter is not supported by the “XamarinDownloadArchives” task - If you find the proper solution, please don't forgot to share this with your team members.