Xamarin绑定库错误

时间:2017-12-21 03:20:57

标签: c# android xamarin xamarin.android

我已成功将以下Android库绑定到Xamarin。但是当我尝试使用它时,应用程序崩溃并出现未处理的异常。以下是正在打印的输出。

ChromeLikeTabSwitcher

12-21 10:47:44.096 E/AndroidRuntime( 8646): FATAL EXCEPTION: main
12-21 10:47:44.096 E/AndroidRuntime( 8646): Process: App1.App1, PID: 8646
12-21 10:47:44.096 E/AndroidRuntime( 8646): java.lang.RuntimeException: Failed to resolve attribute at index 6
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:616)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:6846)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:7014)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.widget.FrameLayout$LayoutParams.<init>(FrameLayout.java:741)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:685)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:62)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.LayoutInflater.inflate(LayoutInflater.java:499)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout.onInflateLayout(PhoneTabSwitcherLayout.java:3348)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at de.mrapp.android.tabswitcher.layout.AbstractTabSwitcherLayout.inflateLayout(AbstractTabSwitcherLayout.java:489)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at de.mrapp.android.tabswitcher.TabSwitcher.initializeLayout(TabSwitcher.java:241)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at de.mrapp.android.tabswitcher.TabSwitcher.access$900(TabSwitcher.java:97)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at de.mrapp.android.tabswitcher.TabSwitcher$5.onGlobalLayout(TabSwitcher.java:657)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at de.mrapp.android.tabswitcher.layout.AbstractTabSwitcherLayout$LayoutListenerWrapper.onGlobalLayout(AbstractTabSwitcherLayout.java:112)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:986)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2210)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1301)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7016)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.Choreographer.doCallbacks(Choreographer.java:590)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.Choreographer.doFrame(Choreographer.java:560)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.os.Handler.handleCallback(Handler.java:739)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.os.Handler.dispatchMessage(Handler.java:95)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.os.Looper.loop(Looper.java:145)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at android.app.ActivityThread.main(ActivityThread.java:6946)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at java.lang.reflect.Method.invoke(Native Method)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at java.lang.reflect.Method.invoke(Method.java:372)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
12-21 10:47:44.096 E/AndroidRuntime( 8646): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

缺少课程警告

Couldn't load class de/mrapp/android/tabswitcher/layout/phone/PreviewDataBinder : java.lang.NoClassDefFoundError: de/mrapp/android/util/multithreading/AbstractDataBinder
Couldn't load class de/mrapp/android/tabswitcher/layout/phone/PhoneRecyclerAdapter : java.lang.NoClassDefFoundError: de/mrapp/android/util/multithreading/AbstractDataBinder$Listener       
missing class error was raised while reflecting de.mrapp.android.tabswitcher.layout.phone.PhoneRecyclerAdapter$1 : de/mrapp/android/util/multithreading/AbstractDataBinder$Listener     
missing class error was raised while reflecting de.mrapp.android.tabswitcher.layout.phone.PhoneTabSwitcherLayout : de/mrapp/android/util/multithreading/AbstractDataBinder$Listener 

Util库错误

Error   CS1519  Invalid token 'params' in class, struct, or interface member declaration C:\Users\sdheshan\source\repos\ClassLibrary3\Util\obj\Debug\generated\src\DE.Mrapp.Android.Util.Multithreading.AbstractDataBinder.cs

Util库错误的原因

params global:: Java.Lang.Object[] p4;
        public params global:: Java.Lang.Object[] P4 {
            get { return p4; }
        }

0 个答案:

没有答案