gpt4 book ai didi

android - 库版本 11.2.0 的 firebase ProGuard 错误(警告)

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:54:36 27 4
gpt4 key购买 nike

我正在研究 11.0.4 firebase 库版本。今天我已经切换到最新版本:11.2.0,当我尝试构建发布版本(启用 ProGuard)时,我收到错误:

Warning:com.google.android.gms.internal.zzbdo: can't find referenced method 'boolean isInstantApp(java.lang.String)' in library class android.content.pm.PackageManager
Warning:there were 1 unresolved references to library class members.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> Job failed, see logs for details

和 gradle 控制台:

Warning: there were 1 unresolved references to library class members.
You probably need to update the library versions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)

最佳答案

我使用的是 API 25 (rev.3),方法 isInstantApp 是在 API 26 中添加的。将 targetSdkVersion 更改为此版本解决了问题。

https://github.com/android/platform_frameworks_base/commit/31a16551910492321a6f7c291eb33e1458f39f0a#diff-a5f0b5ebe6a871aca1c5841bc0497538

关于android - 库版本 11.2.0 的 firebase ProGuard 错误(警告),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45991920/

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