Lines Matching +full:update +full:- +full:eclipse +full:- +full:metadata
1 <!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
5 <meta http-equiv="content-style-type" content="text/css">
12 <!--
15 //-->
54 <li><a href="#keep">Error: You have to specify '-keep' options</a></li>
86 <h3><a href="#runtime">Problems at run-time</a></h3>
115 ProGuard may print out some notes and non-fatal warnings:
130 option like "<code>-keep class MyClass</code>", or their implementations
131 with an option like "<code>-keep class * implements MyClass</code>". You
133 <a href="usage.html#dontnote"><code>-dontnote</code></a> option.</dd>
140 and keep them with an option like "<code>-keep class MyClass { MyFieldType
145 the <a href="usage.html#dontnote"><code>-dontnote</code></a> option.</dd>
148 <dd>Your code uses reflection to access metadata from the code, with an
154 like <a href="usage.html#keepattributes"><code>-keepattributes
157 the <a href="usage.html#dontnote"><code>-dontnote</code></a> option.</dd>
164 fully-qualified names, not forgetting the package names.</dd>
168 <dd>Your configuration contains a <code>-keep</code> option to preserve the
169 given method (or field), but no <code>-keep</code> option for the given
175 the <code>-keep</code> option modifier
177 (<code>-keep,includedescriptorclasses</code> ...). You can switch off
179 the <a href="usage.html#dontnote"><code>-dontnote</code></a> option.</dd>
183 <dd>Your configuration contains a <code>-keep</code> option to preserve the
187 <a href="usage.html#dontnote"><code>-dontnote</code></a> option.</dd>
192 …"usage.html#keepclassmembers"><code>-keepclassmembers</code></a>/<a href="usage.html#keepclasseswi…
198 more common <a href="usage.html#keep"><code>-keep</code></a> option, which
202 the <a href="usage.html#dontnote"><code>-dontnote</code></a> option.</dd>
207 <a href="usage.html#assumenosideeffects"><code>-assumenosideeffects</code></a>
215 the <a href="usage.html#dontnote"><code>-dontnote</code></a> option.</dd>
225 href="usage.html#dontnote"><code>-dontnote</code></a> option.
232 input jars yourself (with <code>-injars</code> or
233 <code>-libraryjars</code>), since you'll then get duplicate definitions.
235 part of the Android run-time (notably <code>org.w3c.dom</code>,
239 run-time libraries would get precedence anyway.</dd>
276 <a href="usage.html#injars"><code>-injars</code></a>, otherwise you
278 <a href="usage.html#libraryjars"><code>-libraryjars</code></a>.
282 specifying the run-time library of your platform. For JSE, these are
285 like JME and Android have their own run-time libraries.
292 <li>If the missing class is referenced from a pre-compiled third-party
296 class or classes from the input, with a filter like "<code>-libraryjars
303 "<code>-libraryjars
307 href="usage.html#ignorewarnings"><code>-ignorewarnings</code></a>
309 the <a href="usage.html#dontwarn"><code>-dontwarn</code></a> option.
315 specifies the input jars for you. Unfortunately, many pre-compiled
316 third-party libraries refer to other libraries that are not actually used
323 you can let ProGuard accept it with "<code>-dontwarn java.awt.**</code>",
326 If the missing class is an Android run-time class, you should make sure
327 that you are building against an Android run-time that is sufficiently
338 <a href="usage.html#ignorewarnings"><code>-ignorewarnings</code></a>
339 or <a href="usage.html#dontwarn"><code>-dontwarn</code></a>, but it didn't
345 corresponding <a href="usage.html#injars"><code>-injars</code></a> option:
346 "<code>-injars
349 (<a href="usage.html#dontoptimize"><code>-dontoptimize</code></a>) and
351 (<a href="usage.html#dontpreverify"><code>-dontpreverify</code></a>).</dd>
374 the Android run-time, you should change the build target in your
382 <a href="usage.html#ignorewarnings"><code>-ignorewarnings</code></a> or
384 <a href="usage.html#dontwarn"><code>-dontwarn</code></a>. For instance, you
385 can specify "<code>-dontwarn mypackage.MyInconsistentClass</code>".
390 …<a href="usage.html#dontskipnonpubliclibraryclassmembers"><code>-dontskipnonpubliclibraryclassmemb…
411 href="usage.html#injars"><code>-injars</code></a>) and library code
413 href="usage.html#libraryjars"><code>-libraryjars</code></a>), and try
418 duplicates of classes that are already present in the Android run-time
423 and the run-time libraries would get precedence anyway.</dd>
432 in the <code>WEB-INF/classes</code> directory in a war should be packaged
433 in a jar and put in the <code>WEB-INF/lib</code> directory. If you don't
435 href="usage.html#ignorewarnings"><code>-ignorewarnings</code></a> option,
436 or even the <a href="usage.html#dontwarn"><code>-dontwarn</code></a>
441 <dd>There is a conflict between a <code>-keep</code> option in the
448 href="usage.html#ignorewarnings"><code>-ignorewarnings</code></a> option,
449 or even the <a href="usage.html#dontwarn"><code>-dontwarn</code></a>
463 href="usage.html#ignorewarnings"><code>-ignorewarnings</code></a> option,
464 or even the <a href="usage.html#dontwarn"><code>-dontwarn</code></a>
466 href="usage.html#useuniqueclassmembernames"><code>-useuniqueclassmembernames</code></a>
475 on-line</a> if there is a more recent release.</dd>
477 <dt><a name="keep"><b>Error: You have to specify '-keep' options</b></a></dt>
480 href="usage.html#keep"><code>-keep</code></a> options, or you mistyped the
488 <dd>If the path of your run-time jar contains spaces, like in "Program Files",
496 <dd>In MacOS X, the run-time classes may be in a different place than on most
503 <dd>ProGuard can't read the specified file or directory. Double-check that the
513 <dd>ProGuard can't write the specified file or directory. Double-check that
521 Bug #7027598</a>. The work-around at this time is to specify the JVM
522 option <code>-DsuppressSwingDropSupport=true</code> when running the
534 usual <code>-Xmx</code> option:
537 -Xmx1024m</code> ...
538 <li>In Ant, set the environment variable <code>ANT_OPTS=-Xmx1024m</code>
540 <code>GRADLE_OPTS=-Xmx1024m</code>
542 <code>MAVEN_OPTS=-Xmx1024m</code>
543 <li>In Eclipse, add the line <code>-Xmx1024m</code> to the file
544 <code>eclipse.ini</code> inside your Eclipse install.
554 size of the Java virtual machine (with the usual <code>-Xss</code> option)
555 should help too. In practice however, the <code>-Xss</code> setting
566 href="usage.html#dontoptimize"><code>-dontoptimize</code></a> option. In
590 platforms with case-insensitive file systems, such as Windows, unpacking
591 tools often let class files with similar lower-case and upper-case names
594 href="usage.html#dontusemixedcaseclassnames"><code>-dontusemixedcaseclassnames</code></a>
600 class files that are in the <code>WEB-INF/classes</code> directory in a
601 war should be packaged in a jar and put in the <code>WEB-INF/lib</code>
609 expecting. It may help to double-check for typos too. You can use the <a
610 href="usage.html#printseeds"><code>-printseeds</code></a> option to see
616 an option like "<code>-keep interface MyMarkerInterface</code>".
621 explicitly keep them in your program code with an option like "<code>-keep
646 happen if some code is optimized radically. Possible work-arounds: let the
647 java compiler not produce debug information (<code>-g:none</code>), or let
651 with <a href="usage.html#keepattributes"><code>-keepattributes</code></a>),
653 (<a href="usage.html#dontoptimize"><code>-dontoptimize</code></a>).</dd>
660 to <code>android-sdk/tools/proguard/lib</code>. If that doesn't help,
675 on a platform with a case-insensitive file system, such as Windows. The
677 similar lower-case and upper-case names overwrite each other. You can use
679 href="usage.html#dontusemixedcaseclassnames"><code>-dontusemixedcaseclassnames</code></a>
685 href="usage.html#dontoptimize"><code>-dontoptimize</code></a> option. You
693 <a href="usage.html#microedition"><code>-microedition</code></a> option,
697 <h2><a name="runtime">Problems at run-time</a></h2>
722 href="usage.html#keep"><code>-keep</code></a> option, e.g. "<code>-keep
723 class mypackage.MyClass</code>" or "<code>-keep class * implements
732 appropriate <a href="usage.html#keep"><code>-keep</code></a> option, e.g.
733 "<code>-keepclassmembers class mypackage.MyClass { int myField;
742 appropriate <a href="usage.html#keep"><code>-keep</code></a> option, e.g.
743 "<code>-keepclassmembers class mypackage.MyClass { void myMethod();
757 href="usage.html#adaptresourcefilenames"><code>-adaptresourcefilenames</code></a>
759 href="usage.html#adaptresourcefilecontents"><code>-adaptresourcefilecontents</code></a>.
763 href="usage.html#keepdirectories"><code>-keepdirectories</code></a>.
773 <code><a href="usage.html#keepattributes">-keepattributes</a>
779 <code>-jar</code> instead of the option <code>-classpath</code>. The java
781 contain a manifest file (<code>META-INF/MANIFEST.MF</code>), if the
782 manifest file doesn't specify a main class (<code>Main-Class:</code> ...),
791 <code>META-INF/INDEX.LIST</code>, listing all class files in the jar.
795 (<code>-injars in.jar(!META-INF/INDEX.LIST)</code>) or update the file
796 after having applied ProGuard (<code>jar -i out.jar</code>).
803 href="usage.html#microedition"><code>-microedition</code></a> option, so
811 options <code><a href="usage.html#repackageclasses">-repackageclasses</a>
813 href="usage.html#overloadaggressively"><code>-overloadaggressively</code></a>.
823 href="usage.html#useuniqueclassmembernames"><code>-useuniqueclassmembernames</code></a>
828 href="usage.html#dontusemixedcaseclassnames"><code>-dontusemixedcaseclassnames</code></a>
830 preverified on a case-sensitive file system, the device itself might not
831 like the mixed-case class names. Notably, the Nokia N-Gage emulator works
836 <dd>If your code contains empty busy-waiting loops, ProGuard's optimization
838 continuously checks the value of a non-volatile field that is changed in a
843 <a href="usage.html#dontoptimize"><code>-dontoptimize</code></a>
854 types, which the run-time environment calls by introspection. The required
868 href="usage.html#overloadaggressively"><code>-overloadaggressively</code></a>
879 href="usage.html#overloadaggressively"><code>-overloadaggressively</code></a>
888 href="usage.html#overloadaggressively"><code>-overloadaggressively</code></a>
896 is sometimes unable to update them consistently. You should then let the
903 directory on a platform with a case-insensitive file system, such as
920 using the <a href="usage.html#dontoptimize"><code>-dontoptimize</code></a>
929 Copyright © 2002-2014