Comments (18)
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.
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.
It's also strange that my AppVeyor CI build succeeds, although my local build fails.
from devices.xunit.
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.
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.
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.
sounds good.
@robertbaker If you know how to overcome the most recent error I reported above, I'd be obliged. :)
from devices.xunit.
@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.
@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.
Xamarin.Android.Support.v7.AppCompat.23.0.1.1
Xamarin Forms 2 installs a bunch of Xamarin.Android.Support.* libs
from devices.xunit.
@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.
@onovotny I noticed that. How could I switch to using project.json in my xamarin solution? Is that possible?
from devices.xunit.
@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.
@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.
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.
Thank you.
from devices.xunit.
@onovotny What is there left to do before support for Forms 2 is on Nuget?
from devices.xunit.
@robertbaker I've just pushed 2.0.0-build0007 to NuGet.org.
from devices.xunit.
Related Issues (20)
- Help with how to use ResultChannel HOT 1
- .txt file not inserted into project on install HOT 1
- iOS 13 can't run test project
- Accessibility problems on Windows Runner
- Testing UWP app fails to start HOT 1
- VS runner does not resolve on netstandard2.0 targets. HOT 2
- Failed MemberData doesn't show in runner app HOT 1
- Visual Studio for Mac
- Extremely poor performance, tests do not complete
- Is Devices.XUnit still be maintained?
- DotNet Maui HOT 1
- Support net6.0+ iOS/Android projects HOT 1
- UWP test runners do not work on Visual Studio 2022 HOT 2
- How do I view/display test results?
- Ability to filter tests HOT 1
- UnitTests from UWP command line
- Device runner for macOS? HOT 6
- Wrong version of xunit.runner.utility.netstandard installed with the latest package version HOT 1
- Test Automation HOT 4
- Templates out of date
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 devices.xunit.