gpt4 book ai didi

android - 生成 Proguarded 签名 APK 问题?

转载 作者:行者123 更新时间:2023-11-29 00:59:42 29 4
gpt4 key购买 nike

我编写了一个播放加密视频的应用程序。它工作正常,但是当我想保护 apk 时,出现了这些警告:

Information:Gradle tasks [:app:assembleRelease]
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.APKExpansionSupport
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.ZipResourceFile
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.ZipResourceFile$ZipEntryRO
Warning:fr.maxcom.http.FileDataSource: can't find referenced class jcifs.smb.SmbFile
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.ZipResourceFile$ZipEntryRO
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.APKExpansionSupport
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.ZipResourceFile
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.ZipResourceFile$ZipEntryRO
Warning:fr.maxcom.http.FileDataSource: can't find referenced class jcifs.smb.SmbFile
Warning:fr.maxcom.http.FileDataSource: can't find referenced class com.android.vending.expansion.zipfile.ZipResourceFile$ZipEntryRO
Warning:fr.maxcom.http.FileDataSource: can't find referenced class jcifs.smb.SmbFile
Warning:fr.maxcom.http.WifiSingleHttpServer: can't find referenced class com.google.android.gms.cast.CastDevice
Warning:there were 25 unresolved references to classes or interfaces.
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
Information:BUILD FAILED
Information:Total time: 9.897 secs
Information:1 error
Information:14 warnings
Information:See complete output in console

有什么建议吗?

最佳答案

将此行添加到 proguard-rules 文件解决了问题:

-dontwarn com.android.vending.expansion.zipfile.**, jcifs.smb.SmbFile, jcifs.http.*, com.google.android.gms.cast.CastDevice

关于android - 生成 Proguarded 签名 APK 问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52100913/

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