gpt4 book ai didi

android - 发布版本 : transformClassesAndResourcesWithProguardForRelease FAILED

转载 作者:行者123 更新时间:2023-11-30 00:25:16 24 4
gpt4 key购买 nike

生成签名的 APK:

Note: there were 8 unresolved dynamic references to classes or interfaces.
Note: there were 4 accesses to class members by means of introspection.
Warning: there were 5 unresolved references to classes or interfaces.
Warning: there were 1 unresolved references to program class members.

transformClassesAndResourcesWithProguardForRelease FAILED

Full Gradle log is here .

My app build.gradle is here .

更新Stacktrace is here .

如果我使用 -ignorewarnings 选项,则该应用程序会在某些版本的 Android 上崩溃。

大概是在转到 Room 后,我停止了生成签名的 APK。我还必须将 com.google.firebase、com.google.android.gms:play-services 从 11.0.4 降级到 11.0.2

两个简单的问题(对于那些知道的人)。

日志说:

Try: Run with --stacktrace option to get the stack trace. 
Run with --info or --debug option to get more log output.

Q1。我可以在 Android Studio 的哪个位置指定“--stacktrace”、“--info 或 --debug”选项?

Q2。如何(我阅读日志)我必须找出缺少哪些类?我应该在哪里看?要寻找什么?

最佳答案

Q1:在项目根目录的命令行中:./gradlew build --stacktrace

Q2:您应该修复此警告:

Warning: android.arch.persistence.room.paging.LimitOffsetDataSource: can't find superclass or interface android.arch.util.paging.CountedDataSource
Warning: android.arch.persistence.room.paging.LimitOffsetDataSource: can't find referenced class android.arch.util.paging.CountedDataSource
Warning: android.arch.persistence.room.paging.LimitOffsetDataSource: can't find referenced class android.arch.util.paging.CountedDataSource
Warning: android.arch.persistence.room.paging.LimitOffsetDataSource: can't find referenced class android.arch.util.paging.CountedDataSource
Warning: android.arch.persistence.room.paging.LimitOffsetDataSource: can't find referenced class android.arch.util.paging.CountedDataSource
Warning: android.arch.persistence.room.paging.LimitOffsetDataSource$1: can't find referenced method 'void invalidate()' in program class android.arch.persistence.room.paging.LimitOffsetDataSource

您可以尝试将其添加到您的混淆文件中:

-dontwarn android.arch.util.paging.CountedDataSource
-dontwarn android.arch.persistence.room.paging.LimitOffsetDataSource

关于android - 发布版本 : transformClassesAndResourcesWithProguardForRelease FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45491643/

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