Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error MSB4064: The "AllowUnsecureUrls" parameter is not supported by the "XamarinDownloadArchives" task

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="..\packages\Xamarin.Build.Download.0.6.0\build\Xamarin.Build.Download.props" Condition="Exists('..\packages\Xamarin.Build.Download.0.6.0\build\Xamarin.Build.Download.props')" />
  <PropertyGroup>```
like image 910
zyzzyxx Avatar asked Dec 04 '19 16:12

zyzzyxx


2 Answers

For me, simply restarting the visual studio fixed this issue.

like image 154
Sreejith Vijayan Avatar answered Sep 30 '22 14:09

Sreejith Vijayan


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.

like image 35
Bram Jongebloet Avatar answered Sep 30 '22 16:09

Bram Jongebloet