Note that there are some explanatory texts on larger screens.

plurals
  1. POProguard with android project using (compatibility) libraries
    text
    copied!<p>I'm trying to use Proguard via the build-in Proguard support in Package Explorer Export > Export Android Application. The main project is using a library project that in turn uses the android compatibility library, it uses this compatibility lib itself too. Basically like so:</p> <p>BaseLibraryProject BaseActitivity libs:android-support-v4.jar MainProject uses library BaseLibraryProject libs:android-support-v4.jar</p> <p>This app runs OK both on devices and simluators. However Proguard emits a lot of warnings and exists with code 1.</p> <p>This is the last bit of the Proguard related listing:</p> <pre><code>[2012-04-09 14:19:49 - MainProject] Warning: android.support.v4.widget.SearchViewCompatHoneycomb: can't find referenced class android.widget.SearchView [2012-04-09 14:19:49 - MainProject] Warning: android.support.v4.widget.SearchViewCompatHoneycomb: can't find referenced class android.widget.SearchView [2012-04-09 14:19:49 - MainProject] Warning: android.support.v4.widget.SearchViewCompatHoneycomb: can't find referenced class android.widget.SearchView$OnQueryTextListener [2012-04-09 14:19:49 - MainProject] Warning: android.support.v4.widget.SearchViewCompatHoneycomb: can't find referenced class android.widget.SearchView [2012-04-09 14:19:49 - MainProject] Warning: android.support.v4.widget.SearchViewCompatHoneycomb$1: can't find referenced class android.widget.SearchView$OnQueryTextListener [2012-04-09 14:19:49 - MainProject] Warning: android.support.v4.widget.SearchViewCompatHoneycomb$1: can't find referenced class android.widget.SearchView [2012-04-09 14:19:49 - MainProject] Warning: there were 131 unresolved references to classes or interfaces. [2012-04-09 14:19:49 - MainProject] You may need to specify additional library jars (using '-libraryjars'). [2012-04-09 14:19:49 - MainProject] Warning: there were 29 unresolved references to program class members. [2012-04-09 14:19:49 - MainProject] Your input classes appear to be inconsistent. [2012-04-09 14:19:49 - MainProject] You may need to recompile them and try again. [2012-04-09 14:19:49 - MainProject] Alternatively, you may have to specify the option [2012-04-09 14:19:49 - MainProject] '-dontskipnonpubliclibraryclassmembers'. [2012-04-09 14:19:49 - MainProject] java.io.IOException: Please correct the above warnings first. </code></pre> <p>As you see: it cannot find the compatibility library.</p> <p>This is the start of the proguard.cfg file with both -libraryjars and -dontskipnonpubliclibraryclassmembers included:</p> <pre><code>-optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -dontpreverify -verbose -libraryjars libs/android-support-v4.jar </code></pre> <p>Does not make a difference. I tried all sorts of combinations of adding the library to the BaseLibrary project / MainProject, fully qualified path names. Nothing seems to help.</p> <p>Most stackoverflow questions on proguard seem to deal with setting up Ant. Any idea what could be causing this problem and how to get Proguard working on this project that uses several libraries?</p> <p>THanks in advance,</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload