gpt4 book ai didi

xamarin.android - 错误 :The "GenerateJavaStubs" task failed unexpectedly

转载 作者:行者123 更新时间:2023-12-01 11:20:10 29 4
gpt4 key购买 nike

安装 plugin.media 库后出现此错误

Severity    Code    Description Project File    Line    Suppression State Error     The "GenerateJavaStubs" task failed unexpectedly. System.InvalidOperationException: There can be only one type with an [Application] attribute; found: ,at Xamarin.Android.Tasks.ManifestDocument.CreateApplicationElement(XElement manifest, String applicationClass, List`1 subclasses, List`1 selectedWhitelistAssemblies)at Xamarin.Android.Tasks.ManifestDocument.Merge(List`1 subclasses, List`1 selectedWhitelistAssemblies, String applicationClass, Boolean embed, String bundledWearApplicationName, IEnumerable`1 mergedManifestDocuments)at Xamarin.Android.Tasks.GenerateJavaStubs.Run(DirectoryAssemblyResolver res)at Xamarin.Android.Tasks.GenerateJavaStubs.Execute()at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() XamarinForms.QbChat.Android 

最佳答案

这个插件依赖于https://github.com/jamesmontemagno/CurrentActivityPlugin

Current Activity 插件向您的 Android 项目添加一个应用程序类。确保您的 Android 项目中只有一个应用程序类和属性。

关于xamarin.android - 错误 :The "GenerateJavaStubs" task failed unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44817673/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com