2013年8月2日星期五

Can't read proguard.ClassPathEntry @ 1a0c10f (No such file ordirectory)

 

In older versions of proguard will appear similar to

 

"Can't read proguard.ClassPathEntry @ 1a0c10f (No such file or directory)"

 

This prompt is not found to be confused with a jar! But can not find the old version which does not prompt specific jar package!

 

so download proguard4 corresponding new version, the new version is as follows

 

 

covering the new version to: (your SDK directory) \ tools \ proguard down, SDK path can not have spaces or Chinese characters!

 

 

1. download the new version proguard4.5.1.zip_ Free High-Speed ​​Download _ Sina love to ask to share information

 

http://ishare.iask.sina.com.cn/f/12510145 . html? from = like (this version if there is an error, it will conduct a detailed tips)

 

2. sure your sdk and the references to third-party jar package with no spaces in the path of Chinese characters

 

3. settings do not confuse the proguard.cfg such third-party jar package:

 

-dontwarn com.j256.ormlite.android. **

 

-dontwarn com.j256.ormlite.dao. **

 

-dontwarn com.j256.ormlite.db. **

 

-dontwarn com.j256.ormlite.field. **

 

-dontwarn com.j256.ormlite.logger. **

 

-dontwarn com.j256.ormlite.misc. **

 

-dontwarn com.j256.ormlite.stmt. **

 

-dontwarn com.j256.ormlite.support. **

 

-dontwarn com.j256.ormlite.table. **

 

-keep class com.j256.ormlite. ** {*;}

 

4. export in eclipse confusion after the procedure, select Export signed or unsigned program, as shown:

 

 

finally explain proguard.cfg setup instructions

 

-optimizationpasses 5

 

-dontusemixedcaseclassnames confusion will not produce all kinds of [class name]

 

-dontskipnonpubliclibraryclasses [specify not ignore non-public library classes. 】

 

-dontpreverify [ not preverifies ]

 

-verbose-optimizations! code / simplification / arithmetic,! field / *,! class / merging / * [optimization]

 

-keep public class * extends android.app.Activity [intact] without confusion

 

-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 public abstract interface com.asqw.android.Listener {

 

public protected ; [confusion] without all methods

 

}

 

-keep public class com.asqw.android {

 

public void Start (java.lang.String); [confusion] without the method

 

}

 

-keepclasseswithmembernames class * {

 

[protection specified class name and class members, if all members of the specified class attendance (in the compression step)]

 

native ;

 

}

 

-keepclasseswithmembers class * {

 

[protected designation of classes and class members, but on condition that all the specified classes and class members are to be present. 】

 

public (android.content.Context, android.util.AttributeSet);

 

}

 

-keepclasseswithmembers class * {

 

public (android.content.Context, android.util.AttributeSet, int);

 

}

 

-keepclassmembers class * extends android.app.Activity {

 

[protected designation of a class, they will be protected if such better protected]

 

public void * (android.view.View);

 

}

 

-keepclassmembers enum * {

 

public static ** [] values ​​(); public static ** valueOf (java.lang.String);

 

}

 

-keep class * implements android.os.Parcelable {

 

[protection specified class file and class members]

 

public static final android.os.Parcelable $ Creator *;

 

}

 

没有评论:

发表评论