Hi all;
Any idea how to get rid of this error , I get this when I run my PCL project in iPAD air 2 ?
Severity Code Description Project File Line Suppression State Tool
Error Failed to resolve "Java.Interop.IJavaPeerable" reference from "Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065" App1.iOS C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 777
Answers
Hi, did you manage to resolve this issue? I have encountered the same problem and cannot seem to find a solution
Me too - sigh. Happened after I updated to latest visual studio (mac and pc end, updated the NuGets etc). Now I can no longer build for iOS.
I my case it occurs during build just after the Provisioning Profile:, Bundle Id: and App Id: lines
Appears to be related to Xamarin.iOS.Common.Targets specifically the branch
Unfortunately, I have no clue how to resolve so I guess I give up with iOS for now. The Android stuff works fine.
By way of a test, for iOS, I set linker behaviour to 'Don't Link' from its previous setting of 'Link Framework SDKs Only' - the error changes, which might give more clues as to why the build fails on latest xamarin
Everything breaking left right and center appears to be the norm with VS and Xamarin updates unfortunately. Guess I will go back to a hello world project and see if the build for that is also broken and if so wait for Xamarin to fix the newly introduced bugs.
I also note that the constant disconnects with the MAC build box have still not been resolved!
Nigel
Hi
In my case, this was an errant reference to 'Android' in the Forms UI code - nothing to do with the Xamarin/VS version update. I do so wish that silly stuff like this got parsed and highlighted during UI build for a multi-platform app though.
If you see any 'Java' errors during iOS build, search your UI code for '.Android' and 'Android.' and stick it in #ifdefs, or get rid of it. In my case it was a quick test of something on Android that I then forgot having ever done.
Hope this helps someone else keep their hair!
Nigel
anybody resolved this issue?
I had to register here and reply on this as I have spent hours to look for a solution to this problem.
Karen, you resolved my problem as I had references in my UI/Forms code that where using Android libraries.
Thanks a lot
BR
Ener_dk