Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Proguard Compatiblity Library
    text
    copied!<p>Hello I'm writing an application that uses the compatibility library and i'm using a view pager in the app. I also am using an action bar library which i got from this link</p> <p><a href="https://github.com/johannilsson/android-actionbar" rel="nofollow">https://github.com/johannilsson/android-actionbar</a></p> <p>my proguard.cfg file looks like this</p> <pre><code>-optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService #keep all classes that might be used in XML layouts -keep public class * extends android.view.View -keep public class * extends android.app.Fragment -keep public class * extends android.support.v4.Fragment #keep all public and protected methods that could be used by java reflection -keepclassmembernames class * { public protected &lt;methods&gt;; } -keepclasseswithmembernames class * { native &lt;methods&gt;; } -keepclasseswithmembernames class * { public &lt;init&gt;(android.content.Context, android.util.AttributeSet); } -keepclasseswithmembernames class * { public &lt;init&gt;(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } -dontwarn **CompatHoneycomb -dontwarn org.htmlcleaner.* </code></pre> <p>and then my defualt.properties looks like this</p> <pre><code># This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be checked in Version Control Systems. # # To customize properties used by the Ant build system use, # "build.properties", and override values to adapt the script to your # project structure. # Project target. target=android-8 android.library.reference.1=../android-actionbar/actionbar proguard.config=proguard.cfg </code></pre> <p>However when i run to compile and sign my app i get a dialog that reads "Proguard returned with error code 1. See console."</p> <p>So i take a look at my console which reads the following</p> <pre><code>[2011-11-01 01:48:39 - Test App] Proguard returned with error code 1. See console [2011-11-01 01:48:39 - Test App] proguard.ParseException: Unknown option 'Manager' in argument number 9 [2011-11-01 01:48:39 - Test App] at proguard.ConfigurationParser.parse(ConfigurationParser.java:170) [2011-11-01 01:48:39 - Test App] at proguard.ProGuard.main(ProGuard.java:491) </code></pre> <p>But this doesn't really mean much to me and i don't know what i'm supposed to do to get this working? Any ideas i've used that proguard script before on an app that didn't use the compatibility library, however, the place i got that script from says it should work with the compatibility library but its not? Anyone have any ideas it would be greatly appreciated</p> <p><strong>===EDIT===</strong></p> <p>After removing the spaces from my build path i was able to get a bit farther but still failed with error 1 the console now had a new list of errors which looks like this now.</p> <pre><code>[2011-11-01 14:01:20 - TestApp] Proguard returned with error code 1. See console [2011-11-01 14:01:20 - TestApp] Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find superclass or interface android.os.Parcelable$ClassLoaderCreator [2011-11-01 14:01:20 - TestApp] Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find referenced class android.os.Parcelable$ClassLoaderCreator [2011-11-01 14:01:20 - TestApp] Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find referenced class android.os.Parcelable$ClassLoaderCreator [2011-11-01 14:01:20 - TestApp] Warning: there were 3 unresolved references to classes or interfaces. [2011-11-01 14:01:20 - TestApp] You may need to specify additional library jars (using '-libraryjars'), [2011-11-01 14:01:20 - TestApp] or perhaps the '-dontskipnonpubliclibraryclasses' option. [2011-11-01 14:01:20 - TestApp] java.io.IOException: Please correct the above warnings first. [2011-11-01 14:01:20 - TestApp] at proguard.Initializer.execute(Initializer.java:308) [2011-11-01 14:01:20 - TestApp] at proguard.ProGuard.initialize(ProGuard.java:210) [2011-11-01 14:01:20 - TestApp] at proguard.ProGuard.execute(ProGuard.java:85) [2011-11-01 14:01:20 - TestApp] at proguard.ProGuard.main(ProGuard.java:499) </code></pre>
 

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