Wednesday, January 22, 2014

Help: proguard.config = proguard.cfg how to use the no effect


            
Saw a lot of posts, said setting proguard.config = proguard.cfg you can use to confuse code
I did not use the effect (proguard.cfg normal), decompile code
out or stillWhat is this place still need to set it?
Reply:
Use only with the 2.3 version of sdk as google to 2.3 before adding proguard in sdk, the
Reply:
2.1 can also find proguard.bat this file, usually in the android-sdk-windows tools \ proguard under \ \ bin directory
The proguard.bat file line
java-jar "% PROGUARD_HOME%" \ lib \ proguard.jar% 1% 2% 3% 4% 5% 6% 7% 8% 9
Replace this line
java-jar "% PROGUARD_HOME%" \ lib \ proguard.jar% *
Reply:
1 is the 2.3.3 SDK
2 Gang also checked proguard.bat files inside also java-jar "% PROGUARD_HOME%" \ lib \ proguard.jar% *
-!
Reply:
Apk file is how you generate?
By Android tools for Export signed Application package to generate it?

If by Run as -> Android application generated no effect.


reference to the third floor reply:.
1 is the SDK
2.3.32 Gang also checked proguard.bat files inside also java-jar "% PROGUARD_HOME%" \ lib \ proguard.jar% *
-!

Reply:
Update under your proguard file, try proguard4.7 of
Reply:
references, 4th Floor reply:
how your apk file is generated?
By Android tools for Export signed Application package to generate it?

If by Run as -> Android application generated no effect.

Is generated by Android tools
Reply:
references, 5th Floor reply: proguard under
update your files with proguard4.7 Try

How to update?
Reply:
proguard out of the confusion of the role of the outer code is also optimized to improve efficiency
Reply:
Go to the top, help ah ~ ~ ~ T.T
Reply:
Contents of your project directory proguard.cfg files is that so?

-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

-Keepclasseswithmembernames class * {
native ;
}

-Keepclasseswithmembers class * {
public (android.content.Context, android.util.AttributeSet);
}

-Keepclasseswithmembers class * {
public (android.content.Context, android.util.AttributeSet, int);
}

-Keepclassmembers class * extends android.app.Activity {
public void * (android.view.View);
}

-Keepclassmembers enum * {
public static ** [] values ​​();
public static ** valueOf (java.lang.String);
}

-Keep class * implements android.os.Parcelable {
public static final android.os.Parcelable $ Creator *;
}
Reply:
Update files in the directory lib directory proguard try:
http://download.csdn.net/detail/aminfo/4286304
Reply:
Thank you very much, finally confused. . .
But I have a project inside the jar jdom package that error, other projects did not report jar package, is not to confuse the configuration to be changed?
Reply:
Landlord, add my QQ 782271752. Took me a few days, and also can not be confused. Seek guidance ah
Reply:
Landlord, I also told you the case, how to solve ah, my qq190042477

No comments:

Post a Comment