BranchMetrics / xamarin-branch-deep-linking-attribution

The Branch Xamarin SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/apps/xamarin/
MIT License
73 stars 17 forks source link

Cannot install Nuget package for Android #10

Closed JohnMcAvinue closed 8 years ago

JohnMcAvinue commented 8 years ago

I'm trying to install the 1.1.1 version using Nuget but I'm getting this error:

Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I'm using VS2015. Perhaps it's related to this bug with Nuget?

https://github.com/NuGet/Home/issues/1707

aaustin commented 8 years ago

@JohnMcAvinue What version of Nuget are you using? We've never seen this error before unfortunately. Can you try adding it with Xamarin Studio, then migrating it to VS?

JohnMcAvinue commented 8 years ago

@aaustin Hi Alex, I can't find anything from Branch.io on the Component Store? I just updated to the latest version of Nuget package manager and I'm still getting the same error

aaustin commented 8 years ago

Hey @JohnMcAvinue - This is the one you're looking for I believe https://www.nuget.org/packages/Branch-Xamarin-Linking-SDK. There's an engineer working to try to replicate the issue you're seeing now.

JohnMcAvinue commented 8 years ago

@aaustin Hi Austin, that is the Nuget package I am having problems with. Here's the Nuget console log when I try to install:

Package Manager Console Host Version 3.3.0.167

Type 'get-help NuGet' to see all available NuGet commands.

PM> Install-Package Branch-Xamarin-Linking-SDK Attempting to gather dependencies information for package 'Branch-Xamarin-Linking-SDK.1.1.1' with respect to project 'EPH.Mobile.Droid', targeting 'MonoAndroid,Version=v6.0' Attempting to resolve dependencies for package 'Branch-Xamarin-Linking-SDK.1.1.1' with DependencyBehavior 'Lowest' Resolving actions to install package 'Branch-Xamarin-Linking-SDK.1.1.1' Resolved actions to install package 'Branch-Xamarin-Linking-SDK.1.1.1' Install failed. Rolling back... Package 'Microsoft.Bcl.Build.1.0.14 : ' does not exist in project 'EPH.Mobile.Droid' Package 'Microsoft.Bcl.Build.1.0.14 : ' does not exist in folder 'C:\SourceCode\EPH\trunk\Mobile\packages' Install-Package : Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:1

antonargunov commented 8 years ago

Hello @JohnMcAvinue Try this solution: 1) Install package Microsoft.Bcl.Build.1.0.21 at first 2) Then install package Branch-Xamarin-Linking-SDK

JohnMcAvinue commented 8 years ago

That worked for me thanks

kevindfs commented 8 years ago

@antonargunov your workaround work for me. Thanks! (Using VS Comunity)

antonargunov commented 8 years ago

@kevindfs glad to hear that!

aswathigi commented 8 years ago

Hi,

I am getting this error while trying to install WindowsAzure.MobileServices Severity Code Description Project File Line Suppression State Error Could not install package 'Microsoft.Bcl 1.1.9'. You are trying to install this package into a project that targets 'MDD,Version=v8.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0

I have tried the above stuffs and its not working for me.

REgards, Aswathi

antonargunov commented 8 years ago

HI @aswathigi , I have several questions: 1) what platform? (iOS, Android) 2) what type of project? (cross-platform, iOS, Android) 3) Xamarin or VS 2015?

Note: Branch Xamarin SDK doesn't support Windows mobile platforms

aswathigi commented 8 years ago

Hello,

Thank you for getting back to me. I am using VS 2015. Its a cross platform project of - Cordova, Phonegap with Ionic framework. I was trying to install "Azure Mobile Apps". later i have added it from config.xml. But still i am not able to get my authentication correctly.

thanks & Regards, Aswathi

On Wed, May 18, 2016 at 6:13 PM, Anton Argunov notifications@github.com wrote:

HI @aswathigi https://github.com/aswathigi , I have several questions: 1) what platform? (iOS, Android) 2) what type of project? (cross-platform, iOS, Android) 3) Xamarin or VS 2015?

Note: Branch Xamarin SDK doesn't support Windows mobile platforms

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/BranchMetrics/Xamarin-Deferred-Deep-Linking-SDK/issues/10#issuecomment-220014391

antonargunov commented 8 years ago

HI @aswathigi , sorry for delay. For my curiosity, I tried to create Cordova + Ionic project, but I have the same issue. As I understand that is trouble with Window Mobile Universal/Window Mobile 8.1. Try to find solution with Microsoft + Ionic community. Or try to delete support Window Mobile platforms. Sorry but I can't help you with your issue.

kevindfs commented 8 years ago

Hi @aswathigi , Try this solution: 1) Install package Microsoft.Bcl.Build.1.0.21 at first 2) Install package Microsoft.Bcl 1.1.9 3) Install package WindowsAzure.MobileServices Regards, Kevin Farías

aswathigi commented 8 years ago

Hello Kevin,

Thank you for your mail and info. I have installed Microsoft.Bcl.Build.1.0.21. The other 2 i was not able to install. It is giving me errors; "Attempting to gather dependency information for package 'Microsoft.Bcl.Async.1.0.168' with respect to project 'BlankCordovaApp3', targeting 'MDD,Version=v8.1'".

My actual requirement is to connect to a share point site and get list of items for mobile apps. Please let me know if you have any alternative options.

Regards, Aswathi

On Sun, May 22, 2016 at 7:10 PM, Kevin Farías notifications@github.com wrote:

Hi @aswathigi https://github.com/aswathigi , Try this solution: 1) Install package Microsoft.Bcl.Build.1.0.21 at first 2) Install package Microsoft.Bcl 1.1.9 3) Install package WindowsAzure.MobileServices Regards, Kevin Farías

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/BranchMetrics/Xamarin-Deferred-Deep-Linking-SDK/issues/10#issuecomment-220833022

Quico20 commented 7 years ago

Thanks for you solution, it also worked for me pal!!! great resource forum!!!

Emixam23 commented 7 years ago

So broken xD Thank for the solution !

deanilvincent commented 7 years ago

Sadly, I found this error when I'm trying to install the Brach-Xamarin-Linking-SDK 3.0.5

Could not install package 'Branch-Xamarin-Linking-SDK 3.0.5'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

aaustin commented 7 years ago

@antonargunov Can you take a look here?

antonargunov commented 7 years ago

Hi @deanilvincent , we use PCL profile 78.

You should delete WindowPhone 8.1 In PCL project from Targets to change PCL profile from 259 to 78: 1) Uninstall Xamarin Forms package (if you use Xamarin Forms) 2) Delete WindowPhone 8.1 from Targets 3) Install Xamarin Forms package (if you use Xamarin Forms)

mahapajapati commented 7 years ago

Hi, Sadly, I have a similiar error to JohnMcAvinue, here is the detail:

PM> install-package xmlrpcnet -Version 2.5.0

You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:1

I´ve already installed succesfully the package Microsoft.Bcl.Build.1.0.21. But I´m still getting the same error above.

I have the 3.4.4 nuget version. Using VS2015 in the Android platform.

Do you have any ideas?

Emixam23 commented 7 years ago

Hey guys, sorry to back back that late !

I found a solution, that's weird but it works.

So you have 3 packages that are: -Microsoft.Bcl -Microsoft.Bcl.Build -Microsoft.Bcl.Net (If I'm wrong, sorry, I'm in a road trip, no computer 9

If you try to install, 2 of them will throw you that it's not possible to install blablabla. Bullshit ! Sometimes, it only depends in which order you install them.

So try to install them, based on the dependency description, one by one, and after that, the 3 of them (that aren't possible to install, hmm), are installed :)

Hope it helps !

Max

deanilvincent commented 7 years ago

I was abled to fix this properly by installing the

Microsoft.Bcl.Build first and then follow by Microsoft.Build. I hope it works on your end.

mahapajapati commented 7 years ago

Thank you for the response. I correctly installed Microsoft.Bcl.Build, Microsoft.Build and Microsoft.Build.Async but it still doesn't work :(

Emixam23 commented 7 years ago

Can you please post the output of the fail ? :)

mahapajapati commented 7 years ago

The fail:

Attempting to gather dependencies information for package 'xmlrpcnet.2.5.0' with respect to project 'CODIGO_BARRAS', targeting 'MonoAndroid,Version=v5.0' Attempting to resolve dependencies for package 'xmlrpcnet.2.5.0' with DependencyBehavior 'Lowest' Resolving actions to install package 'xmlrpcnet.2.5.0' Resolved actions to install package 'xmlrpcnet.2.5.0' Install failed. Rolling back... Package 'xmlrpcnet.2.5.0' does not exist in project 'CODIGO_BARRAS' Package 'xmlrpcnet.2.5.0' does not exist in folder 'C:\Users\admin\Documents\Visual Studio 2015\Projects\CODIGO_BARRAS\CODIGO_BARRAS\packages' Install-Package : Could not install package 'xmlrpcnet.2.5.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

ankitpatel8055 commented 5 years ago

@deanilvincent i think you are selecting class library instead of selecting android project

AyoubSannouti commented 5 years ago

Hello guys,

I'm trying to install GooglePlayServices.Maps 60.11.42.1 using Nuget but I'm getting this error:

Could not install package 'Xamarin.GooglePlayServices.Maps 60.1142.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v7.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I'm using VS2015. Perhaps it's related to this bug with Nuget?