Android Binding: Class is not abstract and does not override abstract method

batmanbatman USMember
edited April 2015 in Xamarin.Android

I am building my binding project and I am getting 12 warnings and 0 errors. These are all my warnings.

Warnings:

/Users/gannonEllefsonTech/Desktop/SamsungDigitalHealth/SamsungDigitalHealth/SamsungDigitalHealth.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Bindings.targets (GenerateBindings target) ->

    BINDINGSGENERATOR:  warning BG8900: Type com.samsung.android.sdk.healthdata.HealthData: FxDG naming violation: Type name 'HealthData' matches namespace part 'Healthdata'.
    BINDINGSGENERATOR:  warning BG8800: Unknown parameter type com.samsung.android.sdk.internal.healthdata.r<T> in method A in managed type Com.Samsung.Android.Sdk.Internal.Healthdata.HealthResultReceiver
    BINDINGSGENERATOR:  warning BG8400: unexpected field type com.samsung.android.sdk.internal.database.e in method AggregateResult in managed type Com.Samsung.Android.Sdk.Internal.Database.BulkCursorDescriptor
    BINDINGSGENERATOR:  warning BG8C00: For type Com.Samsung.Android.Sdk.Healthdata.HealthDataService, base interface com.samsung.android.sdk.SsdkInterface does not exist.

/Users/gannonEllefsonTech/Desktop/SamsungDigitalHealth/SamsungDigitalHealth/SamsungDigitalHealth.csproj (Build) ->
/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/Microsoft.CSharp.Targets (CoreCompile target) ->

    obj/Release/generated/src/Com.Samsung.Android.Sdk.Healthdata.HealthDataResolver.cs(955,56): warning CS0108: `Com.Samsung.Android.Sdk.Healthdata.HealthDataResolver.AggregateResult.Creator' hides inherited member `Com.Samsung.Android.Sdk.Healthdata.HealthResultHolderBaseResult.Creator'. Use the new keyword if hiding was intended
    obj/Release/generated/src/Com.Samsung.Android.Sdk.Healthdata.HealthDataResolver.cs(2739,56): warning CS0108: `Com.Samsung.Android.Sdk.Healthdata.HealthDataResolver.ReadResult.Creator' hides inherited member `Com.Samsung.Android.Sdk.Healthdata.HealthResultHolderBaseResult.Creator'. Use the new keyword if hiding was intended
    obj/Release/generated/src/Com.Samsung.Android.Sdk.Healthdata.HealthPermissionManager.cs(132,56): warning CS0108: `Com.Samsung.Android.Sdk.Healthdata.HealthPermissionManager.PermissionResult.Creator' hides inherited member `Com.Samsung.Android.Sdk.Healthdata.HealthResultHolderBaseResult.Creator'. Use the new keyword if hiding was intended

When I add the dll as a reference to another project I get an error even if I am not using anything in the dll.

obj/Release/android/src/mono/com/samsung/android/sdk/healthdata/HealthResultHolder_ResultListenerImplementor.java(4,8): error :  error: HealthResultHolder_ResultListenerImplementor is not abstract and does not override abstract method onResult(BaseResult) in ResultListener
public class HealthResultHolder_ResultListenerImplementor

In my MetaData.xml file I currently have

<metadata>
  <attr path="/api/package[@name='com.samsung.android.sdk.healthdata']/interface[@name='HealthConstants.HeartRate']/field[@name='HEART_RATE']" name="name">SAMSUNG_HEART_RATE</attr>
  <attr path="/api/package[@name='com.samsung.android.sdk.healthdata']/interface[@name='HealthConstants.Weight']/field[@name='WEIGHT']" name="name">SAMSUNG_WEIGHT</attr>
</metadata>

Is there anything I can add to the metaData in the binding project to solve the error I am getting.

Thanks

Answers

Sign In or Register to comment.