我是Xamarin的新手,从一个资源库中删除了一个项目,该项目无法为MyApplication.Android项目存档APK。如果链接器设置为“None”,它会成功构建,甚至创建APK文件。但是当我尝试在我的设备上安装时,我得到了错误'App not installed‘
当我将链接器设置为“仅SDK程序集”或“SDK和用户程序集”时,在发布模式下构建时出现以下错误。
它无法解析对IAppInformationFinder的引用,这是在同一解决方案中的另一个项目中定义的接口。是的,它已经在.android项目中被引用了。
Error The "LinkAssembl
我创建了一个名为PINControl的自定义视图,该视图继承自StackLayout。我在我的XAML中使用了这样的视图:
<local:PINControl x:Name="PIN" HorizontalOptions="CenterAndExpand"/>
在代码背后,我有一个构造函数:
public PINControl () { ... }
当页面执行System.MissingMethodException方法时,我会得到一个LoadFromXaml。消息是Default constructor not found for type MyN
我的项目正在Debug模式上成功构建,但当我将其更改为Release模式时,将出现以下异常:
Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed
unexpectedly.Java.Interop.Tools.Diagnostics.XamarinAndroidException: error
XA2006: Could not resolve reference
正如标题所示,我正在升级现有Xamarin.Android项目的依赖项。Android项目的大部分跨平台代码都使用了MvvmCross (我们也支持其他平台)。作为此次升级的一部分,我们将从MvvmCross 6.2.2迁移到6.4.1。
然而,在升级库之后,当使用Visual Studio 2017构建时,该项目不再按预期构建。我得到的错误消息如下所示。我已经尝试过清理和重建,但都没有效果。该项目使用Visual Studio 2019构建,但遇到了奇怪的行为;甚至在升级依赖项之前就发生了这种情况。
任何关于解决这个问题的可能方法的建议都将不胜感激。非常感谢您的提前!
The "Li
对于过去的四个构建,他们都失败了,但我不知道为什么。这给了我一个错误,但是当我检查IDE (Android )中的代码时,我没有错误,只是警告。它是否将警告解释为错误?下面是日志给出的错误:
Lint found 1 errors and 6 warnings
:mobile:lint FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mobile:lint'.
> Lint found errors in the project
我正在使用Xamarin在Visual中开发一个应用程序。我想建立在发布模式,以便编译一个APK,以便我可以让一个朋友安装应用程序,以测试我做了什么到目前为止。
在构建发布模式时,我会得到以下错误:
Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed unexpectedly.
System.NullReferenceException: Object reference not set to
我的应用程序在调试模式下运行良好,但是如果我想在发行版中构建它,我会得到以下错误:
Fehler 1 Unerwarteter Fehler bei der LinkAssemblies-Aufgabe.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'System.Void Xamarin.Forms.Element::set_AutomationId(System.String)' (defined in asse
我偶尔在构建脚本中看到这个错误:
ERROR: Unable to execute Sonar
ERROR: Caused by: The project is already being analysed.
不幸的是,这些错误使得构建失败,即使其他一切都很好。
我很高兴偶尔允许Sonar失败,那么在Gradle构建脚本中有什么方法可以忽略这些失败吗?
我有android xamarin应用程序项目,我想测试。(Xamarin应用程序,绑定服务)我已经创建了Unit Test App项目。(Nunit lite)我已经在Unit test App项目中添加了对我希望通过visual studio进行测试的项目的引用。当我重新构建解决方案时,我得到了这个错误。它是由添加此引用引起的。
Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed unexp
我编写了一些非常简单的代码来测试Xamarin功能,并遇到了这个问题。
我已经尝试过清理解决方案和项目,重新编写了新项目中的所有代码,将项目移动到C:磁盘。
Error The "LinkAssemblies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'JvlivsSays, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't e
我的项目正在调试模式上成功构建,但当我将其更改为发布模式时,将出现以下异常:
Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed unexpectedly.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'Android.Gms.Co
我正在尝试使用ANT..but运行Build.xml,即使我的测试用例失败,构建输出显示为build Succesfull,尽管它显示了哪个测试用例失败了,请参见以下输出:
Buildfile: C:\Users\UC179797\workspace\My_Framework\Build.xml
compile:
[javac] C:\Users\UC179797\workspace\My_Framework\Build.xml:15: warning: 'includeantruntime' was not set, defaulting to build.sysclassp