Giter Site home page Giter Site logo

Comments (18)

clairernovotny avatar clairernovotny commented on August 16, 2024

There was no over-arching need other than keeping up with the latest. I really hate how heavy-weight Xam Forms is.

I can revert this back to 1.5 but any thoughts as to how often to update? Also some Xam Forms versions seem to require an Android update while others don't :(

from devices.xunit.

AArnott avatar AArnott commented on August 16, 2024

I'd say update only when absolutely necessary.

In fact, even after installing SDK 23, the build still breaks, and I haven't been able to figure out why or how to fix:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(339,2): error XA5207: Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:\Users\andarno\AppData\Local\Xamarin\Android.Support.v7.MediaRouter\23.0.1.3\embedded\classes.jar doesn't exist. [C:\Users\andarno\git\PCLCrypto\src\PCLCrypto.Tests.Android\PCLCrypto.Tests.Android.csproj]
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(339,2): error XA5207: Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:\Users\andarno\AppData\Local\Xamarin\Android.Support.v7.MediaRouter\23.0.1.3\embedded\libs/internal_impl-23.0.1.jar doesn't exist. [C:\Users\andarno\git\PCLCrypto\src\PCLCrypto.Tests.Android\PCLCrypto.Tests.Android.csproj]
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(339,2): error XA5206: Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Android resource directory C:\Users\andarno\AppData\Local\Xamarin\Android.Support.v7.MediaRouter\23.0.1.3\embedded\./ doesn't exist. [C:\Users\andarno\git\PCLCrypto\src\PCLCrypto.Tests.Android\PCLCrypto.Tests.Android.csproj]

Adding the nuget package with the name mentioned doesn't help. And the SDK Manager doesn't offer it, despite the claims that seem to suggest it would be there.

from devices.xunit.

AArnott avatar AArnott commented on August 16, 2024

It's also strange that my AppVeyor CI build succeeds, although my local build fails.

from devices.xunit.

clairernovotny avatar clairernovotny commented on August 16, 2024

One reason for updating it is to catch/deal with conflicts if other people want to use this to test a project that contains Xamarin forms stuff. I'm not super-convinced that a lib compiled with an older version, say 1.5, would work if they ultimately want to use 2.0 in their app.

Guess it's testable but lord knows what 🐉 awaits

from devices.xunit.

 avatar commented on August 16, 2024

I would prefer to use Xam Forms 2. I just updated the dependency on my droid.test project to 2.0 and it 's broken. Looks like you are working on 2.0 now.

Hope to see a nuget update soon to use 2.0.

Personally I try to be on the latest of everything, unless something breaks and I can't easily fix it.

from devices.xunit.

clairernovotny avatar clairernovotny commented on August 16, 2024

Heres my suggestion: A 1.3 version with Xam 1.5 with an immediate 2.0 version with forms 2. That will let the current fixes be avail to ppl in the interim.

from devices.xunit.

AArnott avatar AArnott commented on August 16, 2024

sounds good.
@robertbaker If you know how to overcome the most recent error I reported above, I'd be obliged. :)

from devices.xunit.

 avatar commented on August 16, 2024

@AArnott
Did it install the app compat libs?

@onovotny any ETA on the 2.0 release with forms 2?

Right now it this works. My project is Forms 2, no conflicts.

from devices.xunit.

AArnott avatar AArnott commented on August 16, 2024

@robertbaker I don't see anything with a name that includes "app compat" or similar. Maybe I'm just not seeing it since there is no search feature. Can you tell me where you see it in the hierarchy and what it's exactly called, please?

from devices.xunit.

 avatar commented on August 16, 2024

Xamarin.Android.Support.v7.AppCompat.23.0.1.1

Xamarin Forms 2 installs a bunch of Xamarin.Android.Support.* libs

from devices.xunit.

clairernovotny avatar clairernovotny commented on August 16, 2024

@robertbaker when you use project.json, you don't need to install each dependent package, they're brought in transitively, which is awesome.

from devices.xunit.

 avatar commented on August 16, 2024

@onovotny I noticed that. How could I switch to using project.json in my xamarin solution? Is that possible?

from devices.xunit.

AArnott avatar AArnott commented on August 16, 2024

@robertbaker If you're using Xamarin Studio, there is no IDE support for it. You'd have to use nuget.exe from the command line anytime you changed project.json files. But yes, I've been doing it for weeks with great results.

Your Xamarin.Android.Support.v7.AppCompat package doesn't look like one I'd find in the SDK Manager. Is this a NuGet package you're referring to? Because I added the package the error message asks for and it doesn't help. The error indicates the build is looking for files in my Android SDK directory under localappdata, which nuget doesn't help with.

from devices.xunit.

 avatar commented on August 16, 2024

@AArnott Apologies for not being clear. Forms 2.0 adds Xamarin.Android.Support.* nuget packages.

As for the SDK. You just need the latest SDK Tools and 5.0 SDK platform. I also have sources, but not sure if that's needed.

I'm not using the master branch, so I'm not heling if that's the case. I'm using the stable nuget of devices.xunit.

When I tried to nuget update my test project to Forms 2. It broke.

Have you tried cleaning the solution? When I receieved an issue with resources designer, it wouldn't regenerate correctly until I cleaned it.

@onovotny I'm using VS 15 Pro.

from devices.xunit.

clairernovotny avatar clairernovotny commented on August 16, 2024

Okay, @AArnott 1.3.1 with Xamarin 1.5 refs was just pushed to nuget.org with the latest fixes. @robertbaker 2.0.0-build0002 with the xam forms 2.0 ref is on the CI MyGet feed. It'll be a bit longer for 2.0 to hit the main NuGet as there's a few other things I'd like to include in it too.

from devices.xunit.

AArnott avatar AArnott commented on August 16, 2024

Thank you.

from devices.xunit.

 avatar commented on August 16, 2024

@onovotny What is there left to do before support for Forms 2 is on Nuget?

from devices.xunit.

clairernovotny avatar clairernovotny commented on August 16, 2024

@robertbaker I've just pushed 2.0.0-build0007 to NuGet.org.

from devices.xunit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.