简体   繁体   中英

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

I was programming when I imported the newtonsoft, json library. Sudenly, when I execute my app shows this 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. I can not deploy either the android emulator. It looks like all my Visual Studio crashed and my emulator too.

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?

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. See 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM