Proguard 在导出应用程序时出现以下错误

发布于 2024-12-19 21:43:18 字数 668 浏览 0 评论 0原文

Warning: library class android.webkit.WebView depends on program class android.webkit.WebViewClient   
Warning: there were 1 instances of library classes depending on program classes.   
       You must avoid such dependencies, since the program classes will   
        be processed, while the library classes will remain unchanged.   
 java.io.IOException: Please correct the above warnings first.   
    at proguard.Initializer.execute(Initializer.java:308)   
at proguard.ProGuard.initialize(ProGuard.java:210)   
at proguard.ProGuard.execute(ProGuard.java:85)   
at proguard.ProGuard.main(ProGuard.java:499)

任何人都可以指定完整的程序来保护我的应用程序。

Warning: library class android.webkit.WebView depends on program class android.webkit.WebViewClient   
Warning: there were 1 instances of library classes depending on program classes.   
       You must avoid such dependencies, since the program classes will   
        be processed, while the library classes will remain unchanged.   
 java.io.IOException: Please correct the above warnings first.   
    at proguard.Initializer.execute(Initializer.java:308)   
at proguard.ProGuard.initialize(ProGuard.java:210)   
at proguard.ProGuard.execute(ProGuard.java:85)   
at proguard.ProGuard.main(ProGuard.java:499)

Can anyone specify the complete procedure to proguard my application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧桑㈠ 2024-12-26 21:43:18

此警告的描述如下:

ProGuard 手册 >故障排除>>警告:库类...取决于程序类...

这里提供了 Android 的完整配置:

ProGuard 手册 >示例>一个完整的Android应用程序

然而,最简单的方法可能是Android SDK的构建过程,其中包括ProGuard:

Android SDK 开发指南 >工具>混淆器

This warning is described here:

ProGuard manual > Troubleshooting > Warning: library class ... depends on program class ...

A complete configuration for Android is provided here:

ProGuard manual > Examples > A complete Android application

However, the easiest way is probably the build process of the Android SDK, which includes ProGuard:

Android SDK Dev Guide > Tools > ProGuard

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文