Comments (51)
Same issue here... Changing to 6 solved it, but that's definitely not optimal.
from azure-pipelines-tasks.
I can confirm - build is green if compile target is Android 6.
Would prefer not to have to change that just to get my CI to work though :|
from azure-pipelines-tasks.
Why can't the tools on the hosted build VMs be kept up to date with Xamarin releases?
Xamarin is part of Microsoft for a year now...
Part of their release it should be updating the hosted build VMs.
from azure-pipelines-tasks.
https://www.visualstudio.com/en-us/docs/build/concepts/agents/hosted has a "Software" section that is kept up to date with all the software installed on the hosted build VMs.
from azure-pipelines-tasks.
@thechrisjohnson is updating it today
from azure-pipelines-tasks.
Thanks for reporting this issue. I will take a look.
from azure-pipelines-tasks.
Could you please let me know if you are building this sample app from Xamarin? https://github.com/xamarin/mobile-samples/tree/master/Phoneword
I am not able to reproduce this issue from my end, I can build this app on VSO.
from azure-pipelines-tasks.
Sort of. It's a slight variant of it. I'm using a PCL for the common code, I've removed the iOS project, and also added a UITest project. If you want I can invite you to the VSO team I have setup for this.
from azure-pipelines-tasks.
That would be great! Could you please invite [email protected] to the VSO team?
from azure-pipelines-tasks.
I repro'ed the issue here on my account. Thanks for the project, I will circle back once I figured out the issue.
from azure-pipelines-tasks.
Well, in your csproj file, I deleted this line:
Reference Include="mscorlib"
and now it builds on VSO. I am assuming in your local dev box you probably don't have one of the conflicting mscorlib?
In any case, once you remove this reference your solution should build.
from azure-pipelines-tasks.
Update: I was using Xamarin 3.11.836 and Visual Studio 2015 Pro. When I reverted to Xamarin 3.11.666, the build task works.
For now, the workaround is to use Xamarin 3.11.666 for your local development.
from azure-pipelines-tasks.
Xamarin 3.11.836 was release a few days after we upgraded our tooling to 3.11.666. We will upgrade the tools on VSO. I will close this issue after the deployment.
Thanks for reporting the issue!
from azure-pipelines-tasks.
Cross reference Xamarin bugzilla issue 33294
from azure-pipelines-tasks.
The issue seems have been resolved in more recent builds of Xamarin for Visual Studio (3.11.1443 or higher). Closing this off.
from azure-pipelines-tasks.
Hi guys, the error is active again on VSO using android v7.
from azure-pipelines-tasks.
Facing the same issue.
from azure-pipelines-tasks.
Reopening the issue, as it seems that two users are reporting the problem again.
from azure-pipelines-tasks.
Me too facing this issue is there any temporary solution?
from azure-pipelines-tasks.
Can you please post the failed job log? Does delete Reference Include="mscorlib"
from the csproj file work?
@madhurig do you have any insights on this issue?
from azure-pipelines-tasks.
Me too facing this issue is there any temporary solution?
Yes there is a solution: switch back to Android v6
Can you please post the failed job log? Does delete Reference Include="mscorlib" from the csproj file work?
Not working for me. Shows another error during build.
from azure-pipelines-tasks.
We have submitted a pull request to update the hosted image with Android SDK to v7. I am not sure if hosted image has been updated with Android v7 yet.
from azure-pipelines-tasks.
The master hosted image copy has been updated and we are in the process of verifying the changes now. The current ETA is by end of next week if there are no surprises. You should receive the new image by 10/16.
from azure-pipelines-tasks.
I'm seeing the same issue. I removed mscorlib reference in both the PCL and Droid project. Also I uncheck the C# settings options in project settings -> "Do not reference mscorlib.dll" option.
I'll test the new image on 10/16
from azure-pipelines-tasks.
Is the new image already available for testing?
from azure-pipelines-tasks.
Sorry for the delay, I was just informed that we may still need couple extra days to rollout the image due to an issue. :(
from azure-pipelines-tasks.
Any further feedback on this? Having android CI broken = :(
from azure-pipelines-tasks.
Are you still facing issues?
The hosted image should have been update with Android v7 (v24), can you post your build failure in a new issue? Was your build working before and now it stopped working? Are you using latest Google support and extra libraries? Those libraries update quite fast and you may experience some delay in getting the last library on to the hosted image due to scheduling and testing involved in the image generation process. :(
If you don't absolutely need the latest support / extra libraries, lowering the version down usually would unblock you.
from azure-pipelines-tasks.
Last successful Android CI build was on 22 Sep - after which something changed that broke it.
using xamarin forms android - so cannot use the latest android support libraries because xamarin forms does not support them yet.
Here's the current error:
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1616,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly.
Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'Mono.Security.Cryptography.SymmetricTransform' (defined in 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') from 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve Mono.Security.Cryptography.SymmetricTransform
Additional info:
Xamarin forms android support libs are currently 23.3.0
Compile using latest platform (android 7.0) -> this perhaps what is causing the issue?
Linker option = Sdk Assemblies only
from azure-pipelines-tasks.
Same issue. Any update on this topic?
from azure-pipelines-tasks.
Does compile using Android 6 works? Android v7 was recently introduced to hosted image, maybe that change broke your build?
from azure-pipelines-tasks.
Any updates on this issue?
I don't want to edit my .csproj and change TargetFramework.
from azure-pipelines-tasks.
From the linked issue, Madhuri mentioned we will be updating the hosted image early next year after the holidays to include Xamarin.Android 7 support..
Sorry for the inconvenience.
from azure-pipelines-tasks.
@yacaovsnc thanks for the heads-up, I appreciate it!
Are you planning to automate updating the hosted image whenever Xamarin makes a new release? So these situations are avoided.
from azure-pipelines-tasks.
@andreinitescu the tools on the hosted image always lag behind. with a private agent you can control the tools installed.
from azure-pipelines-tasks.
encounter same problem today and "delete Reference Include="mscorlib"" fixed it
from azure-pipelines-tasks.
Open the .csproj file in notepad and then delete the Reference Include="mscorlib". This solves the issue.
from azure-pipelines-tasks.
Any news on updating the hosted image?
What's the logical explanation for deleting mscorlib
reference from .csproj file? Why does that solves the issue?
from azure-pipelines-tasks.
Also having the issue, removing the mscorlib from android project did not solve the problem. Created the extra problem:
MSB4018: The "LinkAssemblies" task failed unexpectedly.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Reference to metadata item 'Mono.Security.Cryptography.SymmetricTransform' (defined in 'System.Core, Version=2.0.5.0,
for now switched back to targetframework 6.0. Also note that I was using targetframework 7.1 and the beta version of forms.
from azure-pipelines-tasks.
Facing the same problem still. When targeting 7.1 I receive the mscorlib error. When removed from proj file, we recieve MSB4018: The "LinkAssemblies" task failed unexpectedly.
Building works again when target sdk is set to 7.0.
from azure-pipelines-tasks.
@Reijnn : Xamarin Android version was updated at the end of Dec 2016 to 7.0. If you target a higher version like 7.1, you will continue seeing the "LinkAssemblies" task failure since that is not available on the hosted build VMs.
Thanks,
Madhuri
from azure-pipelines-tasks.
Hi Everyone!! Could this be related with the proguard version issue, documented by Xamarin?
The Android SDK is shipping with an old proguard version that crashes when the target version of the project is Android 7.0+, the workaround is to update the proguard tool by hand within the android-sdk folder. I'm now able to build release version (proguard) within VisualStudio, but I'm still unable to build them in VSTS.
Could you please check on this thread?
from azure-pipelines-tasks.
@apestchanker: This failure happens when you target 7.1 even without dependency on proguard. Once the tools on the hosted build VMs are updated, the error with LinkAssemblies should go away when targeting 7.1. The proguard version not being updated with Android SDK is also known and being tracked: #3355
@opcodewriter : I hear your frustration. One of the reasons hosted build VM update is slow is that we have one image for all the customers. We can't apply unstable/beta releases to it and even stable channel builds could have bugs that break existing builds. There is infrastructure work being done to make this better. We hope to make it more automated and faster than it is today.
from azure-pipelines-tasks.
@madhurig Thanks, it makes sense. I guess the best would be if VSTS would be able to figure out the version of Xamarin from .csproj and use it to build the app. Or give VSTS user a way to choose the version like from a dropdown.
I wonder how soon can we expect this, I guess not anytime "soon", like months.
from azure-pipelines-tasks.
@madhurig Is there an overview of the currently supported (Android) SDK versions?
from azure-pipelines-tasks.
it's not that updated.. so what's the process this keeps updated? Can we make a pr?
C9 stable is out, i would hope the next day support on VSTS ...
from azure-pipelines-tasks.
@rmarinho: Cycle 9 is now available on the hosted build VMs. We would like to speed up the update process and are working on some improvements. The process is not open source, so we can't accept PRs currently.
from azure-pipelines-tasks.
Awesome, thanks!
from azure-pipelines-tasks.
@madhurig commented on 13 mrt. 2017 16:50 CET:
Cycle 9 is now available on the hosted build VMs.
Can you update the hosted agents software list.
from azure-pipelines-tasks.
Also de capabilities seem to not be correct does the agent version number changes for example when you update Xamarin ?
from azure-pipelines-tasks.
@rmarinho : Agent version need not change with every hosted build update.
from azure-pipelines-tasks.
Related Issues (20)
- [Question]: Why am I getting a Warning about AzureRM? HOT 1
- [BUG]: PublishCodeCoverageResults@2 Error during reading file HOT 4
- [REGRESSION]: PackerBuild task fails with: unknown configuration key: "client_jwt" HOT 4
- [BUG]: AzureFunctionApp Task may result in the WEBSITE_RUN_FROM_PACKAGE AppSetting missing on SCM\Kudu and Validation failures HOT 1
- [REGRESSION]: AzureFileCopy@6 failing to load Az.Accounts v3.0.0 module HOT 18
- Azure App Service Deployment: Node 20 related issues HOT 4
- [enhancement]: AzureCLIV2 - Support SNI (Subject Name + Issuer) validation / send x5c claim in the JWT header
- [BUG]: npmAuthenticate@0 stucks for 2 minutes HOT 1
- [enhancement]: AzurePowerShell@5 Support SNI (Subject Name + Issuer) validation / pass -SendCertificateChain? HOT 1
- [REGRESSION]: ArchiveFiles@2 w/ 7z-ultra compress the file in a format that ExtractFiles@1 can't open. HOT 8
- [Question]: vstest@2 vs vstest@3 HOT 1
- [BUG]: Wrong bracers for validating version of visual studio
- [BUG]: Azure File transform task. EPERM: operation not permitted, stat 'C:\agent\_work\r1\a\build_api\Jobs\App_Data\jobs\continuous\protocols\bin\2d35ec66-b8b4-4f9b-8a50-753889deb977.tmp' HOT 2
- [BUG]: UsePythonVersion@0 doesn't load unreleased python version (3.13) HOT 3
- [BUG]: build.gradle.kts not recognized when enabling code coverage HOT 1
- [BUG]: PublishCodeCoverageResults@2 result pane not as useful as PublishCodeCoverageResults@1 HOT 3
- [Question]: Why are our Cache@2 pipeline tasks not utilizing the master branch scope outside of Pull Requests?
- [BUG]: Deployment template validation failed: 'The provided value for the template parameter '<an object type parameter>' is not valid. Expected a value of type 'Object', but received a value of type 'String'. Please see https://aka.ms/arm-create-parameter-file for usage details.'.
- help needed for AzureResourceGroupDeployment validation failing with Forbidden error HOT 1
- HelmDeploy@0 doesn't auto handle new ARM throttling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tasks.