Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Failing to install on the Android Project #255

Closed
IeuanWalker opened this issue May 17, 2018 · 6 comments
Closed

Failing to install on the Android Project #255

IeuanWalker opened this issue May 17, 2018 · 6 comments

Comments

@IeuanWalker
Copy link

Description

Installing the package into xamarin.forms project fails for the android project. Installs fine for the shared and iOS projects.
Errer message -

Severity Code Description Project File Line Suppression State
Error Failed to add reference. The package 'Xamarin.Essentials' tried to add a framework reference to 'System.Numerics' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
This collection is read-only. 0

Steps to Reproduce

  1. Install nuget on all projects
  2. Successed on shared and iOS
  3. Fails for android

Basic Information

  • Version with issue: 0.6.0-preview
  • IDE: VS 2017
@mattleibow
Copy link
Contributor

@Redth I think we can just add the numerics nuget to all the platforms. It should not break anything.

@jamesmontemagno
Copy link
Collaborator

This is very strange, but yeah probably doing the nuget is the easiest way.

My assumption is that this is on an old project that has tons of reference assemblies that could be removed due to legacy... I saw this in an old project i had but updated it to not have these crazy dependencies.

The work around would just to edit your csproj to add this reference because it exists, but let's add the nuget.

@IeuanWalker
Copy link
Author

@jamesmontemagno your right this is quite an old but on going project, i just spent the last hour or 2 upgrading xamarin.forms NuGet from version 2.5+ to version 3.0 and it has seemed to have fixed the issue :D

mattleibow pushed a commit that referenced this issue May 25, 2018
* Fixes #258
* put vectors nuget everywhere.
* NuGet is broken - https://developercommunity.visualstudio.com/content/problem/232996/warning-nu1603-runtimenativesystemiocompression-41.html
* The NuGet doesn't add the assembly references from the GAC
* We need to use a later version of the iOS SDK
jamesmontemagno added a commit that referenced this issue Jun 21, 2018
* GH-221: Add iOS SecAccessible properties (#223)

* Address #221, use AfterFirstUnlockThisDeviceOnly to match other platforms. Although allow a platform specific override to set accessible state.

* Add tests

* Added iOS specific prop to set SecAccessible

* Default to AfterFirstUnlock on iOS SecureStorage

* A few fixes for the release. (#228)

* Setting the correct flags for Chrome Tabs. Fixes #225

* Make sure that there is data to decrypt before starting. Fixes #226

* Fixes for TTS. Fixes #227

* A bit of the fixes for emails on iOS. Relates to #224

* Update the email bit for iOS #224

* Cleaning up the code #224

* Make sure to set the email properties. Fixes #229

* Update SDK Extras

This fixes a lot of references that were required on android that aren't.

* Update Readme with Installation information. (#237)

* Update Readme with Installation information.

* Update README.md

* Update README.md

* Adding the initial work to get Tizen started. #23

* Revert "Adding the initial work to get Tizen started. #23"

This reverts commit 58b6041.

* Update the docs with the latest APIs (#233)

Add docs for SecAccessible

* GH-245: Add Orientation Sensor (#249)

* Add Orientation Sensor

* Add Orientation Sensor

* Remove .csproj clutter

* "orientationsensor" --> "orientation sensor" or just "orientation"

* GH-192: Added DateTime to Preferences (#232)

* Added DateTime to preferences. Fixes #192
 - also properly using overloads

* Added some unit tests

* Added the docs for the new Preferences APIs

* Update Readme with Device Display Information

Added link to Current Features for Device Display Information

* Fixes #258 and Fixes #255 (#259)

* Fixes #258
* put vectors nuget everywhere.
* NuGet is broken - https://developercommunity.visualstudio.com/content/problem/232996/warning-nu1603-runtimenativesystemiocompression-41.html
* The NuGet doesn't add the assembly references from the GAC
* We need to use a later version of the iOS SDK

* Fix typo (#274)

* Fix up null checks when getting lask known location.

* Additional Null checks

* GH-240 Add IsMainThread detection API (#277)

* Add IsMainThread detection API

* Add platform tests for main thread

* Update docs and add more platform tests

* iOS secure storage simulator tests (#247) (#278)

* iOS secure storage simulator tests (#247)

* Remove line that skips test on virtual devices

* Adding keychain-access-groups in Entitlements.plist

* Setting CodeSign entitlements for Debug configuration

* Making same entitlement.plist changes for iOS sample

* Removing specific code sign key

* Removing physical device trait for iOS SecureStorageTests

* Update DeviceTests.iOS.csproj

* Update Samples.iOS.csproj

* Add configs for codesign on release

* Fixes #181 Allowing setting of calibration for heading. (#282)

* GH-254 Update Support Packages, Forms, and Reference Vectors (#279)

* Update Support Packages, Forms, and Reference Vectors

* Bump targetsdk

* Fix android build :)

* Fix build
@EmreBugday99
Copy link

This issue is still going on.

Steps to Reproduce

  1. Install nuget on all projects
  2. Successed on shared and iOS
  3. Fails for android

Exactly as @IeuanWalker says.

Now, here is the strange thing:
Package wont even be tried to get installed at Android project as this screenshot shows: https://i.ibb.co/S379fhs/SS1.png

And heres the error I get after installation: https://i.ibb.co/c6ZVzvx/SS2.png

@jamesmontemagno
Copy link
Collaborator

@EmreB99 see: https://docs.microsoft.com/en-us/xamarin/essentials/troubleshooting?context=xamarin/xamarin-forms very easy to fix. Simply install the dependencies first.

@jamesmontemagno
Copy link
Collaborator

can you post some logs or images of what you are seeing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants