gpt4 book ai didi

android - 在其中使用混淆器的导出 android 应用程序时出错

转载 作者:行者123 更新时间:2023-11-29 17:30:40 24 4
gpt4 key购买 nike

我尝试导出我的应用程序。我在导出 apk 文件向导中填写字段当单击完成按钮时出现错误我在我的应用程序中使用混淆器,如下所示:

    proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19
android.library.reference.1=..\\..\\SlidingMenu-master\\library
android.library.reference.2=../appcompat_v7

我不更改应用程序中的 Proguard 项目文件。控制台错误:

[2015-10-16 11:45:37 - nabege] Proguard returned with error code 1. See console
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$1: can't find superclass or interface com.util.IabHelper$OnIabSetupFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find superclass or interface com.util.IabHelper$OnIabPurchaseFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find superclass or interface com.util.IabHelper$QueryInventoryFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.googlecode.mp4parser.authoring.tracks.mjpeg.OneJpegPerIframe: can't find referenced class javax.imageio.ImageIO
[2015-10-16 11:45:37 - nabege] Warning: com.googlecode.mp4parser.authoring.tracks.mjpeg.OneJpegPerIframe: can't find referenced class javax.imageio.ImageIO
[2015-10-16 11:45:37 - nabege] Warning: com.googlecode.mp4parser.authoring.tracks.mjpeg.OneJpegPerIframe: can't find referenced class java.awt.image.BufferedImage
[2015-10-16 11:45:37 - nabege] Warning: com.googlecode.mp4parser.authoring.tracks.mjpeg.OneJpegPerIframe: can't find referenced class java.awt.image.BufferedImage
[2015-10-16 11:45:37 - nabege] Warning: com.googlecode.mp4parser.authoring.tracks.mjpeg.OneJpegPerIframe: can't find referenced class java.awt.image.BufferedImage
[2015-10-16 11:45:37 - nabege] Warning: com.googlecode.mp4parser.authoring.tracks.mjpeg.OneJpegPerIframe: can't find referenced class java.awt.image.BufferedImage
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.AboutUsActivity: can't find referenced class com.nabproduct.nabege.Help_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.AboutUsActivity: can't find referenced class com.nabproduct.nabege.Setting_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.AddCollectionActivity: can't find referenced class com.nabproduct.nabege.Setting_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.AddCollectionActivity: can't find referenced class com.nabproduct.nabege.Help_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.AudioRecorder: can't find referenced class com.nabproduct.nabege.Mp4ParserWrapper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.AudioRecorder: can't find referenced class com.nabproduct.nabege.Mp4ParserWrapper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.nabproduct.nabege.Intent_values
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.nabproduct.nabege.Intent_values
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper$OnIabPurchaseFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper$OnIabSetupFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper$QueryInventoryFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper$OnIabPurchaseFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabHelper$QueryInventoryFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$1: can't find referenced class com.util.IabHelper$OnIabSetupFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$1: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$1: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$1: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.IabHelper$OnIabPurchaseFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.Purchase
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.Purchase
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.Purchase
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$3: can't find referenced class com.util.Purchase
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.IabHelper$QueryInventoryFinishedListener
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.Inventory
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.Inventory
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.IabHelper
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.Inventory
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.IabResult
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.BuyPremiumActivity$4: can't find referenced class com.util.Inventory
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Collection_List_Activity: can't find referenced class com.nabproduct.nabege.Intent_values
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Collection_List_Activity: can't find referenced class com.nabproduct.nabege.Intent_values
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Collection_List_Activity: can't find referenced class com.nabproduct.nabege.Help_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Collection_List_Activity: can't find referenced class com.nabproduct.nabege.Setting_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Collection_List_Activity$2: can't find referenced class com.nabproduct.nabege.Subjects_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Collection_List_Activity$2: can't find referenced class com.nabproduct.nabege.Intent_values
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Collection_List_Activity$2: can't find referenced class com.nabproduct.nabege.Intent_values
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_Collection_Activity: can't find referenced class com.nabproduct.nabege.Setting_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_Collection_Activity: can't find referenced class com.nabproduct.nabege.Help_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$15: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$15: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$15: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$15: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$15: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$17: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$17: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$17: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$17: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$17: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$18: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$18: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$18: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] Warning: com.nabproduct.nabege.Edit_subject_Activity$18: can't find referenced class com.nabproduct.nabege.Edit_subject_Activity
[2015-10-16 11:45:37 - nabege] You should check if you need to specify additional program jars.
[2015-10-16 11:45:37 - nabege] Warning: there were 81 unresolved references to classes or interfaces.
[2015-10-16 11:45:37 - nabege] You may need to specify additional library jars (using '-libraryjars').
[2015-10-16 11:45:37 - nabege] java.io.IOException: Please correct the above warnings first.
[2015-10-16 11:45:37 - nabege] at proguard.Initializer.execute(Initializer.java:321)
[2015-10-16 11:45:37 - nabege] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-10-16 11:45:37 - nabege] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-10-16 11:45:37 - nabege] at proguard.ProGuard.main(ProGuard.java:492)
[2015-10-16 11:45:37 - nabege] Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m

最佳答案

您始终可以在 Progruard 规则文件中的 Don't Warn 区域添加您的库:

例如:

-dontwarn YOUR_LIBRARY_PACKAGE_NAME.**

编辑:
您需要避免混淆整个 LibrariesLibraries 中的特定 Classes。为此,您可以简单地点击此链接:

http://omgitsmgp.com/2013/09/09/a-conservative-guide-to-proguard-for-android/

您还可以检查这个问题,它解释了如何将您的 Library 放入 Don't Warn 区域,同时避免它的代码混淆。

How to use -dontwarn in ProGuard?

注意:如果您的库中的整个代码都被混淆了,那么您的应用程序肯定会出现一些运行时崩溃。

希望对您有所帮助。

关于android - 在其中使用混淆器的导出 android 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33165814/

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