Android异常篇 androidx.versionedparcelable.VersionedParcelable uses extends but actually matches implem
Posted 其子昱舟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android异常篇 androidx.versionedparcelable.VersionedParcelable uses extends but actually matches implem相关的知识,希望对你有一定的参考价值。
一、问题原因
将android Studio 升级到3.5 后,进行编译apk的时候,会出现R8 warnings:
The rule -keep public class * extends androidx.versionedparcelable.VersionedParcelable (
); uses extends but actually matches implements.
二、解决方案
说明:这是versionedparcelable 1.0.0的bug,在1.1.0版本已经修改,修改方法:
1、在proguard文件中添加:
-keep public class * implements androidx.versionedparcelable.VersionedParcelable
2、在build.gradle文件中添加:
implementation "androidx.versionedparcelable:versionedparcelable:1.1.0"
以上是关于Android异常篇 androidx.versionedparcelable.VersionedParcelable uses extends but actually matches implem的主要内容,如果未能解决你的问题,请参考以下文章
Android异常篇 efore task ‘:app:compileDebugJavaWithJavac‘
Android异常篇 efore task ‘:app:compileDebugJavaWithJavac‘
Android异常篇 Fail to connect to camera service
Android异常篇 Android Studio中R文件丢失,且对应import语句变成灰色
Android异常篇 Error:Execution failed for task ‘:app:validateSigningDebug‘.
Android异常篇 The option setting ‘android.disableResourceValidation=true‘ is experimental and unsupport