Xamarin Forms 1.5.1 troubles on new project

MartinBrekhofMartinBrekhof NLUniversity ✭✭

(Using VS2015 on Windows 8.1)
I created a new Xamarin Forms PCL project. The Xamarin forms version was 1.3.3.... I decided to get this upgraded to the latest-and-greatest. That process in itself went fine. However in the .droid nuget collection somehow it was decided that 4 packages Xamarin.Android.Support.Design/.v7.AppCompat/.v7.CardView/.v7.MediaRouter needed to be added to the packages.config. The version of all these four packages is 23.0.1.1 and nuget immediately shows that they need to be upgraded to 23.0.1.3 (Why didn't they just get installed?)
At this point I'm already having doubts about the quality of the upgrade proces. Anyway, I decided to see what happens when I build the Android project.
I then get this error:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r20.zip and extract it to the C:\Users\marti_000\AppData\Local\Xamarin\Android.Support.v7.CardView\23.0.1\content directory.
3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Reason: C:\Users\marti_000\AppData\Local\Xamarin\Android.Support.v7.CardView\23.0.1\android_m2repository_r20.zip is not a valid zip file

Ok, time to upgrade those four new packages: a world of hurt is the expression. Uninstalled the Android SDK and re-installed it etc.

Am I the only one experiencing these difficulties and if so, what is it that I am doing wrong? At this moment I'm on 1.3.3.. This functions but not being able to upgrade makes me unsure whether or not I'll experience problems when deploying etc.

tia

Tagged:

Best Answer

Answers

  • NMackayNMackay GBInsider, University mod

    @MartinBrekhof

    The upgrade went okayish at work but when I was installing Xamarin at home last night and upgraded to Forms 1.5.1 from 1.4.4 I got the same problems. I didn't have time to look into it.

  • TheRealJasonSmithTheRealJasonSmith USXamarin Team Xamurai

    Our latest and greatest deps on 23.0.1.3, I dont know why its not getting installed for you by default?

  • MartinBrekhofMartinBrekhof NLUniversity ✭✭

    created a new app and stepped through versions untill nuget wants to add the extra packages. At this moment I have the Android SDK at the latest and Forms at 1.5.0.6447(latest). As soon as I upgrade to 1.5.1... nugets starts to add additional packages.

  • TheRealJasonSmithTheRealJasonSmith USXamarin Team Xamurai

    Oh okay yes, we bumped the deps again in 1.5.1 because bug fixes :)

  • MartinBrekhofMartinBrekhof NLUniversity ✭✭

    I'm probably a little dense here but 'we bumped the deps again in 1.5.1' makes me wonder whether or not I should:
    a) de-install/reinstall everything
    b) wait for a new release of forms
    c) ???

    if c) I could use a little guidance

  • MartinBrekhofMartinBrekhof NLUniversity ✭✭

    Hi Norman,
    That did the trick! I can now create and (after nugetting a lot), compile and run with the 1.5.1..... version. Thanks
    Martin

  • NMackayNMackay GBInsider, University mod

    @MartinBrekhof

    Glad to help :smile:

Sign In or Register to comment.