gpt4 book ai didi

android - 通过 1.1.3 - Proguard

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

当我使用 proguard 生成 apk 版本并使用 Fingerprint Samsung 所需的库(pass-v1.1.3.jar、sdk-v1.0.0.jar)时,出现以下错误:

Proguard returned with error code 1. See console
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$b: can't find superclass or interface com.samsung.android.fingerprint.IFingerprintClient$Stub
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$c: can't find superclass or interface com.samsung.android.fingerprint.FingerprintIdentifyDialog$FingerprintListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.b: can't find superclass or interface com.samsung.android.fingerprint.FingerprintManager$EnrollFinishListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint: can't find referenced class com.samsung.android.fingerprint.FingerprintIdentifyDialog
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint: can't find referenced class com.samsung.android.fingerprint.FingerprintIdentifyDialog$FingerprintListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint: can't find referenced class com.samsung.android.fingerprint.FingerprintManager
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint: can't find referenced class com.samsung.android.fingerprint.FingerprintManager$EnrollFinishListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$b: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$b: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$b: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient$Stub
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$b: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$b: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient$Stub
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$b: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$c: can't find referenced class com.samsung.android.fingerprint.FingerprintIdentifyDialog
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$c: can't find referenced class com.samsung.android.fingerprint.FingerprintIdentifyDialog$FingerprintListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.SpassFingerprint$c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.b: can't find referenced class com.samsung.android.fingerprint.FingerprintManager
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.b: can't find referenced class com.samsung.android.fingerprint.FingerprintManager$EnrollFinishListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.c: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.d: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.d: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.d: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.d: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.e: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.e: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.e: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.e: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.e: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.e: can't find referenced class com.samsung.android.fingerprint.FingerprintEvent
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.FingerprintIdentifyDialog
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.FingerprintIdentifyDialog$FingerprintListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.FingerprintManager
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.FingerprintManager$EnrollFinishListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.FingerprintIdentifyDialog$FingerprintListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.FingerprintManager$EnrollFinishListener
[2015-05-07 19:56:57 - ] Warning: com.samsung.android.sdk.pass.support.IFingerprintManagerProxy: can't find referenced class com.samsung.android.fingerprint.IFingerprintClient
[2015-05-07 19:56:57 - ] You should check if you need to specify additional program jars.
[2015-05-07 19:56:57 - ] Warning: there were 48 unresolved references to classes or interfaces.
[2015-05-07 19:56:57 - ] You may need to specify additional library jars (using '-libraryjars').
[2015-05-07 19:56:57 - ] java.io.IOException: Please correct the above warnings first.
[2015-05-07 19:56:57 - ] at proguard.Initializer.execute(Initializer.java:321)
[2015-05-07 19:56:57 - ] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-05-07 19:56:57 - ] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-05-07 19:56:57 - ] at proguard.ProGuard.main(ProGuard.java:492)

我应该在 proguard-project.txt 中放些什么?我该如何解决?有什么想法吗?

最佳答案

通过在混淆器中添加以下行来忽略警告。

-dontwarn com.samsung.**

-keep class com.samsung.** {*;}

关于android - 通过 1.1.3 - Proguard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30117048/

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