Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proguard giving the following error while exporting the application

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.

like image 422
Chetan Avatar asked Dec 05 '11 06:12

Chetan


1 Answers

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

like image 186
Eric Lafortune Avatar answered Sep 22 '22 07:09

Eric Lafortune