mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

Assembly not found for Android 7.1 support #5190

Closed jonathanpeppers closed 5 years ago

jonathanpeppers commented 6 years ago

From @ghuntley on April 19, 2018 5:34

Howdy,

I'm not blocked but here are some product feedback thoughts going through my brain...

screen shot 2018-04-19 at 3 26 43 pm

Steps to Reproduce

https://gist.github.com/ghuntley/8834ccf4894a31d1dbb264821d425626

Version Information

=== Visual Studio Enterprise 2017 for Mac ===

Version 7.4.3 (build 10)
Installation UUID: a32bd9d1-8328-4615-8629-3d85d971cc40
Runtime:
    Mono 5.8.1.0 (2017-10/6bf3922f3fd) (64-bit)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 508010000

=== NuGet ===

Version: 4.3.1.4445

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Version: 2.0.5
SDK: /usr/local/share/dotnet/sdk/2.1.4/Sdks
SDK Version: 2.1.4
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.8.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.1
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 9.3 (14154)
Build 9E145

=== Xamarin.Mac ===

Version: 4.2.1.29 (Visual Studio Enterprise)

=== Xamarin.iOS ===

Version: 11.9.1.24 (Visual Studio Enterprise)
Hash: f62de472
Branch: xcode9.3
Build date: 2018-03-29 19:30:53-0400

=== Xamarin.Android ===

Version: 8.2.0.16 (Visual Studio Enterprise)
Android SDK: /Users/ghuntley/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
        4.4 (API level 19)
        5.0 (API level 21)
        5.1 (API level 22)
        6.0 (API level 23)
        7.0 (API level 24)
        7.1 (API level 25)
        8.0 (API level 26)
        8.1 (API level 27)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 27.0.1
SDK Build Tools Version: 27.0.3

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Inspector ===

Version: 1.4.0
Hash: b3f92f9
Branch: master
Build date: Fri, 19 Jan 2018 22:00:34 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 704030010
Git revision: 5af3e98549653fcc5335896ccc296343d08f31bb
Build date: 2018-04-12 12:32:07-04
Xamarin addins: fadb82fb0fe2668cb7789f8b524aec6fb8568ee7
Build lane: monodevelop-lion-d15-6

=== Operating System ===

Mac OS X 10.13.4
Darwin 17.5.0 Darwin Kernel Version 17.5.0
    Mon Mar  5 22:24:32 PST 2018
    root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

LiveXAML 1.3.31
MFractor 3.05.00
Internet of Things (IoT) development (Preview) 7.1

Copied from original issue: xamarin/xamarin-android#1579

VS bug #640603

jonathanpeppers commented 6 years ago

From @mikehachen on May 21, 2018 19:38

I have the same issue here. Do I need to worry? Red crosses always give me bad feelings...

jonathanpeppers commented 6 years ago

From @mikehachen on May 31, 2018 20:26

Any news? I have some problems with my app (crashes right after startup) but I don't know if it is related this "error" or something different...

slluis commented 6 years ago

@sgmunn thoguhts?

sgmunn commented 6 years ago

@jonathanpeppers I do not think this issue is related to the app crash after startup reported by @mikehachen.

I am not sure exactly what is causing this at the moment, but if the project builds and deploys I am certain that the crash is unrelated.

jonathanpeppers commented 6 years ago

@mikehachen can you post a new issue for what you are experiencing? https://github.com/xamarin/xamarin-android/wiki/Submitting-Bugs,-Feature-Requests,-and-Pull-Requests

@sgmunn I think the OP here is mainly posting about the red X's in the screenshot.

sgmunn commented 6 years ago

yes, for the red X's I do not have a suggestion to what is causing that right now.

jonathanpeppers commented 6 years ago

So I think these are Facade assemblies @sgmunn

Does there just need to be some additional logic to locate them? They are in /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/xamarin.android/xbuild-frameworks/MonoAndroid/v1.0/Facades/ on my machine.

mikehachen commented 6 years ago

In the meantime I was able to fix the problem which was causing the app to crash. However those red X's are still there. What do you need to locate the root problem? I moved a second app from pcl to netstandard 2.0 and there I have the same problems. red X's saying that those libs can't be found...

sgmunn commented 6 years ago

@jonathanpeppers @jonpryor @slluis I've debugged a little and from what I saw it looks like monodevelop is looking in

/Library/Frameworks/Mono.framework/External/xbuild-frameworks/../../../Xamarin.Android.framework/Libraries/xbuild-frameworks/MonoAndroid/v1.0

to find the android assemblies. The assemblies marked with red x's above are not in this folder. Should they be? Should monodevelop be looking elsewhere as well?

ghuntley commented 6 years ago

re: I think the OP here is mainly posting about the red X's in the screenshot.

Correct.

mikehachen commented 6 years ago

Why is this closed? What is the solution??

slluis commented 6 years ago

This was closed by mistake.

daveclarke commented 6 years ago

Any news on this or a workaround - I'm getting a "Can not resolve reference: System.Threading.Tasks.Extensions referenced by System.Reactive." My References show System.Collections, System.Runtime, System.Threading.Tasks all with the red X's and associated "Assembly not found" error.

mikebluestein commented 5 years ago

I am running into this exact issue in VS2017 Mac after installing VS2019 Mac. Is there any way to fix this?

KevinSkipRollins commented 5 years ago

I too am running into this exact issue after upgrading my Visual Studio for Mac. Claims assemblies not found for framework Xamarin.Android v9.0 support. But I can still build and run the application successfully. Is there any fix for this?

karak commented 5 years ago

I have met this issue just after I installed VS2019 for Mac. Any fix? What is caused by this?

Dev1994 commented 5 years ago

Any solution yet? I've completely uninstalled and reinstalled VS and Xamarin off my machine and still facing the same problem.

aspnetde commented 5 years ago

Same here 👎

hackzai commented 5 years ago

same here...

Therzok commented 5 years ago

There's a fix for this underway in https://github.com/xamarin/xamarin-android/pull/2928