xamarin Java.语言.没有发现类定义错误

3wabscal  于 2022-12-07  发布在  Java
关注(0)|答案(2)|浏览(117)

After i updated some packages (Android Support Design) on my project, an error appeared:
Java.Lang.NoClassDefFoundError: android.arch.core.internal.FastSafeIterableMap
I don't know why i have this. I changed my target android version, but the error is still here.
I'm using the latest version of xamarin, and i'm still in debug, with proguard disable.
Any ideas?
packages.config :

<?xml version="1.0" encoding="utf-8"?>
<packages>
   <package id="Xamarin.Android.Arch.Core.Common" version="1.0.0.1" targetFramework="monoandroid81" />
   <package id="Xamarin.Android.Arch.Lifecycle.Common" version="1.0.3.1" targetFramework="monoandroid81" />
   <package id="Xamarin.Android.Arch.Lifecycle.Runtime" version="26.1.0" targetFramework="monoandroid81" />
</packages>
q9rjltbz

q9rjltbz1#

软件包Xamarin.Android.Arch.Lifecycle.Runtime的版本26.1.0listed as deprecated
拥有者已取消列出此套件。这可能表示此套件已过时或不应再使用。
请尝试删除此软件包,然后使用current version 1.0.3.1重新添加。
然后再做一个cleanrebuild的项目。

e5nszbig

e5nszbig2#

I got this same error when i migrated

From

implementation 'com.android.support:design:26.0.2'

To

implementation 'com.android.support:design:27.1.1'

and realized i need to add this extra dependency for design 27.1.1 to work

implementation 'android.arch.core:common:1.1.1'

That's all.

相关问题