C# 在Xamarin.android中的路径:DexPathList上未找到类“android.support.constraint.ConstraintLayout”
我有一个非常简单的xamarin经典应用程序,包含以下.axml文件C# 在Xamarin.android中的路径:DexPathList上未找到类“android.support.constraint.ConstraintLayout”,c#,xamarin,xamarin.android,android-constraintlayout,C#,Xamarin,Xamarin.android,Android Constraintlayout,我有一个非常简单的xamarin经典应用程序,包含以下.axml文件 <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_heig
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"/>
</android.support.constraint.ConstraintLayout>
我找到了.gradle启用约束布局的下一个代码
dependencies {
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}
但是,当然,它在Xamarin.Android中不起作用。我试图安装
但它不适用于Mono.Android6.0
我如何解决我的问题?有什么猜测吗?类android.support.constraint.ConstraintLayout由于某种原因没有出现在索引列表中
一些原因可能是:
它没有安装
它被连接起来了
它不生成主索引列表,而只生成辅助索引列表。
使用上等鲨鱼来确定发生了什么。确保您的链接器设置设置为“无”,以确保Mono链接器也不会删除它。我所需要的就是更改Mono framework版本为android.csproj
v7.0事实上,我最近遇到了这个问题,我通过在我的 很明显,正如乔恩·道格拉斯所建议的那样,各个类之间已经相互联系起来了。通过添加此异常,可以防止类被链接
dependencies {
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}
<assembly fullname="Xamarin.Android.Support.Constraint.Layout">
<type fullname="*" />
</assembly>
<assembly fullname="Xamarin.Android.Support.Constraint.Layout.Solver">
<type fullname="*" />
</assembly>