Bug 58187 - Bindings - native classes has unknown base type
Summary: Bindings - native classes has unknown base type
Status: RESOLVED DUPLICATE of bug 56436
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 7.3 (15.2)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2017-07-17 13:47 UTC by Filipe
Modified: 2017-09-07 15:24 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test app with the ATInternet library in binding project (95.30 KB, application/x-zip-compressed)
2017-07-18 13:16 UTC, Filipe
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 56436

Description Filipe 2017-07-17 13:47:22 UTC
I have found a problem on Bindings project. Indeed, before the Xamarin may update I could bind my ATInternet .jar library without any issue, an now after the update, it only binds a part of the library.


1>BINDINGSGENERATOR : warning BG8102: Class Java.Util.LinkedHashMap has unknown base type Java.Util.HashMap.
1>BINDINGSGENERATOR : warning BG8103: Class Com.AT.ATParams has invalid base type Java.Util.LinkedHashMap.
1>BINDINGSGENERATOR : warning BG8701: Invalid return type com.at.ATParams in method GetParams in managed type Com.AT.ATTagOperation.
1>BINDINGSGENERATOR : warning BG8801: Invalid parameter type com.at.ATParams in method ATTagOperation in managed type Com.AT.ATTagOperation.
1>BINDINGSGENERATOR : warning BG8801: Invalid parameter type com.at.ATParams in method ATTagOperation in managed type Com.AT.ATTagOperation.
1>BINDINGSGENERATOR : warning BG8801: Invalid parameter type com.at.ATParams in method TagPage in managed type Com.AT.ATTag.

It can't find the Java.Util.HashMap so the Com.AT.ATParams that inherits from the Java.Util.LinkedHashMap is not found in my Android project so the compilation fails.


Is there a fix for this kind of warnings/error?
Comment 1 Jon Douglas [MSFT] 2017-07-17 15:35:52 UTC
There's a Stack Overflow question on this topic. I'm adding it here to help count affected users:

https://stackoverflow.com/questions/44925071/xamarin-forms-android-binding-library-error

As for your question, a minimal viable sample would help us investigate this issue further. Can you please add a reproduction project to this bug so we can dig in further? For example, upload a Bindings Project with the ATInternet.jar included.

Thanks!
Comment 2 Filipe 2017-07-18 13:16:23 UTC
Created attachment 23624 [details]
Test app with the ATInternet library in binding project

Test app with the ATInternet library in binding project in the same configuration as the original project
Comment 3 Filipe 2017-07-25 08:45:07 UTC
Hello, do you have any updates on this issue? Do you need more informations about the problem?

For my side, I've reinstalled my Visual Studio 2017 and Xamarin and the problem remains the same.
Comment 4 Matthew Leibowitz 2017-08-04 14:14:43 UTC
I just want to note that I also get this one.

    BINDINGSGENERATOR : warning BG8102: Class Java.Util.LinkedHashMap has unknown base type Java.Util.HashMap.
    BINDINGSGENERATOR : warning BG8103: Class VKontakte.API.VKParameters has invalid base type java.util.LinkedHashMap.
    BINDINGSGENERATOR : warning BG8801: Invalid parameter type com.vk.sdk.api.VKParameters in method AddExtraParameters in managed type VKontakte.API.VKRequest.

I rolled back to Xamarin.Android v7.2 and then it works, Xamarin.Android v7.3+ and then it breaks.
Comment 5 Matthew Leibowitz 2017-08-04 14:17:01 UTC
May be related to: https://bugzilla.xamarin.com/show_bug.cgi?id=56436
Comment 6 Jon Douglas [MSFT] 2017-08-21 21:32:26 UTC
Marking this issue as a duplicate as the respective warnings match up to the RESOLVED FIXED issue in 56436. This had to deal with the order that interfaces are defined.

https://bugzilla.xamarin.com/show_bug.cgi?id=56436#c21

*** This bug has been marked as a duplicate of bug 56436 ***
Comment 7 Filipe 2017-09-07 12:12:41 UTC
Quick question, is it possible to use this fix with the Xamarin.Android 7.4 ? Or we need to wait for the Xamarin.Android 7.5 coming with the Visual Studio 15.4 update ?
Comment 8 Jon Douglas [MSFT] 2017-09-07 15:24:44 UTC
It will come out with 15.4 (Which will be called 7.5 in preview 2 but renamed to 8.0 in preview 3)

https://bugzilla.xamarin.com/show_bug.cgi?id=56436#c25