gpt4 book ai didi

android - 如何将 Shrinker (R8) 与 react-native 一起使用

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:18:56 25 4
gpt4 key购买 nike

我正在将 react-native 版本更新到 0.60.4,但是当我尝试构建版本时,我陷入了 Task :app:transformClassesAndResourcesWithR8ForRelease

我试过禁用 R8 并且可以正常工作,但得到了 3 倍大的 apk

R8 is the new Android code shrinker. If you experience any issues, please file a bug at
https://issuetracker.google.com, using 'Shrinker (R8)' as component name. You can
disable R8 by updating gradle.properties with 'android.enableR8=false'.
Current version is: 1.4.94 (build 3904928f0db9c3bf128ce3bbfb160 from go/r8bot (luci-r8-ci-archive-0-5g74)).


D8: The rule `-keep class * extends com.facebook.react.bridge.JavaScriptModule {
*;
}` uses extends but actually matches implements.
D8: The rule `-keep class * extends com.facebook.react.bridge.NativeModule {
*;
}` uses extends but actually matches implements.
D8: The rule `-keep public class * extends androidx.versionedparcelable.VersionedParcelable {
<init>();
}` uses extends but actually matches implements.

最佳答案

关于android - 如何将 Shrinker (R8) 与 react-native 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57383379/

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