我在用Xamarin从创建java绑定库时遇到了问题。它似乎没有链接jar文件中包含的所有类文件。
obj\Debug\generated\src\Com.Sinch.Android.Rtc.Internal.Client.ConfigRefresher.cs(9,87,9,121): error CS0234: The type or namespace name 'UserAgentMethodInvocationScheduler' does not exist in the namespace 'Com.Sinch.Android.Rtc.Internal.Client' (are you missing an assembly reference?)
obj\Debug\generated\src\Com.Sinch.Android.Rtc.Internal.Client.HouseKeeper.cs(9,83,9,117): error CS0234: The type or namespace name 'UserAgentMethodInvocationScheduler' does not exist in the namespace 'Com.Sinch.Android.Rtc.Internal.Client' (are you missing an assembly reference?)
obj\Debug\generated\src\Com.Rebtel.Repackaged.Com.Google.Gson.Internal.Bind.TypeAdapters.cs(942,25,942,30): error CS0111: Type 'Com.Rebtel.Repackaged.Com.Google.Gson.Internal.Bind.TypeAdapters.EnumTypeAdapter' already defines a member called 'Write' with the same parameter types我在这里使用的是3.4.1 Android API:https://www.sinch.com/downloads/
发布于 2018-04-03 07:11:49
我使用的是https://github.com/NAXAM/sinch-verification-android-binding的sinch binding。
需要注意的是:如果你直接从上面的GitHub链接中添加引用到你的项目中,你会得到很多编译时错误。
使用Nuget包而不是
安装-Package Naxam.SinchVerification.Droid
它工作得很好。
https://stackoverflow.com/questions/27349332
复制相似问题