简体   繁体   English

Java.Lang.NoClassDefFoundError: '解析失败: Landroidx/arch/core/executor/ArchTaskExecutor;'

[英]Java.Lang.NoClassDefFoundError: 'Failed resolution of: Landroidx/arch/core/executor/ArchTaskExecutor;'

I was programming when I imported the newtonsoft, json library.我在导入 newtonsoft、json 库时正在编程。 Sudenly, when I execute my app shows this mesaje.突然,当我执行我的应用程序时,会显示这个 mesaje。 It was never show before.这是以前从未展示过的。 在此处输入图像描述

I got back to the last succesful version of my project also I deleted the new library.我回到了我项目的最后一个成功版本,我也删除了新库。 But when I execute it, still the message.但是当我执行它时,仍然是消息。 Also I tried to execute a new "hello world" Xamarin.Android app but it says the same.我还尝试执行一个新的“hello world”Xamarin.Android 应用程序,但它说的是一样的。 I can not deploy either the android emulator.我无法部署 android 仿真器。 It looks like all my Visual Studio crashed and my emulator too.看起来我所有的 Visual Studio 都崩溃了,我的模拟器也崩溃了。

This is the error code:这是错误代码: 在此处输入图像描述

What could I do?我能做什么? Desintall all the visual studio and intall it again?卸载所有视觉工作室并重新安装它? Is there a way to reintall only the Android Management Devices?有没有办法只重新安装 Android 管理设备?

In your Hello World, you will also need Xamarin.AndroidX.Arch.Core.Runtime Version 2.1.0.8 if using Xamarin.AndroidX.App.Compat 1.2.0.7, so I suspect that you will also need it in your main project too.在您的 Hello World 中,如果使用 Xamarin.AndroidX.App.Compat 1.2.0.7,您还需要 Xamarin.AndroidX.Arch.Core.Runtime 版本 2.1.0.8,所以我怀疑您在主项目中也需要它。 See https://github.com/xamarin/AndroidX/issues/278 .请参阅https://github.com/xamarin/AndroidX/issues/278

I'm using VS 16.10.0 Prev 1.0, so it may be different if using earlier versions of VS我使用的是 VS 16.10.0 Prev 1.0,所以如果使用早期版本的 VS 可能会有所不同

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.NoClassDefFoundError:无法解决以下问题:Landroidx / arch / core / util / Cancellable - java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/arch/core/util/Cancellable java.lang.NoClassDefFoundError:解析失败:Landroidx / core / app / ActivityManagerCompat - java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/app/ActivityManagerCompat java.lang.NoClassDefFoundError:解析失败:Landroidx/core/view/MenuHost; - java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/view/MenuHost; java.lang.NoClassDefFoundError:解析失败:Landroidx/appcompat/app/AppCompatActivity - java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/app/AppCompatActivity java.lang.NoClassDefFoundError:解析失败:Landroidx/appcompat/app/AppCompatActivity; - java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/app/AppCompatActivity; Xamarin.Android 绑定 Java.Lang.NoClassDefFoundError: '解析失败: Landroidx/viewbinding/ViewBinding;' - Xamarin.Android binding Java.Lang.NoClassDefFoundError: 'Failed resolution of: Landroidx/viewbinding/ViewBinding;' java.lang.NoClassDefFoundError:更新 Gradle Android 插件时失败的解析:Landroidx/work/R - java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/work/R when updating Gradle Android Plugin Android Espresso:java.lang.NoClassDefFoundError:解析失败:Landroidx/test/platform/io/FileTestStorage; - Android Espresso: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/test/platform/io/FileTestStorage; 将 androidx.room 打包到 aar 库中的项目导致 java.lang.NoClassDefFoundError:解析失败:Landroidx/room/RoomDatabase - Project with androidx.room packed into aar library causes java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/room/RoomDatabase java.lang.NoClassDefFoundError:解析失败:MyClass - java.lang.NoClassDefFoundError: Failed resolution of: MyClass
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM