I watched this link and My application use google play services. I added this lines
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames #com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
#com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
but when i export my application gives this error:
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Proguard returned with error code 1. See console
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.internal.af: can't find referenced method 'boolean isAttachedToWindow()' in class android.view.View
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.internal.an$2: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: com.google.android.gms.internal.gu: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] You should check if you need to specify additional program jars.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: there were 11 unresolved references to classes or interfaces.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] You may need to specify additional library jars (using '-libraryjars').
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Warning: there were 3 unresolved references to program class members.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Your input classes appear to be inconsistent.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] You may need to recompile them and try again.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] Alternatively, you may have to specify the option
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] '-dontskipnonpubliclibraryclassmembers'.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] java.io.IOException: Please correct the above warnings first.
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.Initializer.execute(Initializer.java:321)
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-02-20 23:15:04 - TurkiyeYollarindaTrafikOlaylari] at proguard.ProGuard.main(ProGuard.java:492)
I'm new on using proguard. I will publish my first android application. I dont understand these errors so any help?
Might it be that you are using 3rd party libraries in your project that you forgot to include in the proguard.config using the '-libraryjars' tag...?
Related
I want to signed my application so i had enabled proguard to my application but when i signed then it show error like this in console
[2016-03-09 09:09:44 - xxx] Proguard returned with error code 1. See console
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzac: can't find referenced class android.net.http.AndroidHttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzac: can't find referenced class android.net.http.AndroidHttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpDelete
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpGet
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpHead
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpOptions
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPut
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpTrace
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.entity.ByteArrayEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced method 'void addHeader(java.lang.String,java.lang.String)' in class com.google.android.gms.internal.zzw$zza
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpDelete
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpGet
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpHead
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpOptions
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPut
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPut
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpTrace
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.entity.ByteArrayEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find referenced method 'void setURI(java.net.URI)' in class com.google.android.gms.internal.zzw$zza
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateParseException
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzy: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzy: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.ProtocolVersion
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHeader
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicStatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.ProtocolVersion
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHeader
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicStatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] You should check if you need to specify additional program jars.
[2016-03-09 09:09:44 - xxx] Warning: there were 87 unresolved references to classes or interfaces.
[2016-03-09 09:09:44 - xxx] You may need to specify additional library jars (using '-libraryjars').
[2016-03-09 09:09:44 - xxx] Warning: there were 2 unresolved references to program class members.
[2016-03-09 09:09:44 - xxx] Your input classes appear to be inconsistent.
[2016-03-09 09:09:44 - xxx] You may need to recompile them and try again.
[2016-03-09 09:09:44 - xxx] Alternatively, you may have to specify the option
[2016-03-09 09:09:44 - xxx] '-dontskipnonpubliclibraryclassmembers'.
[2016-03-09 09:09:44 - xxx] java.io.IOException: Please correct the above warnings first.
[2016-03-09 09:09:44 - xxx] at proguard.Initializer.execute(Initializer.java:321)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.initialize(ProGuard.java:211)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.execute(ProGuard.java:86)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.main(ProGuard.java:492)
Is there a way to fix it? as i know the proguard error in there with google play service too
and in there at this line
[2016-03-09 09:09:44 - xxx] You should check if you need to specify additional program jars.
[2016-03-09 09:09:44 - xxx] Warning: there were 87 unresolved references to classes or interfaces.
[2016-03-09 09:09:44 - xxx] You may need to specify additional library jars (using '-libraryjars').
[2016-03-09 09:09:44 - xxx] Warning: there were 2 unresolved references to program class members.
[2016-03-09 09:09:44 - xxx] Your input classes appear to be inconsistent.
[2016-03-09 09:09:44 - xxx] You may need to recompile them and try again.
[2016-03-09 09:09:44 - xxx] Alternatively, you may have to specify the option
[2016-03-09 09:09:44 - xxx] '-dontskipnonpubliclibraryclassmembers'.
[2016-03-09 09:09:44 - xxx] java.io.IOException: Please correct the above warnings first.
[2016-03-09 09:09:44 - xxx] at proguard.Initializer.execute(Initializer.java:321)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.initialize(ProGuard.java:211)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.execute(ProGuard.java:86)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.main(ProGuard.java:492)
there is something unresolved
file in proguard project
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
#-keep class * extends java.util.ListResourceBundle {
# protected Object[][] getContents();
#}
#-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
# public static final *** NULL;
#}
#-keepnames #com.google.android.gms.common.annotation.KeepName class *
#-keepclassmembernames class * {
# #com.google.android.gms.common.annotation.KeepName *;
#}
#-keepnames class * implements android.os.Parcelable {
# public static final ** CREATOR;
#}
-keep class com.google.android.gms.ads.**
I use "#" to rules in there because i dont know the function so ijust use -keep class com.google.android.gms.ads.**
can anyone explain this why?
please replace your proguard file with this proguard file.
Proguardrule.pro
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
#-dontoptimize
#-dontpreverify
# If you want to enable optimization, you should include the
# following:
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
-optimizationpasses 5
-allowaccessmodification
#
# Note that you cannot just include these flags in your own
# configuration file; if you are including this file, optimization
# will be turned off. You'll need to either edit this file, or
# duplicate the contents of this file and remove the include of this
# file from your project's proguard.config path property.
-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.BackupAgent
-keep public class * extends android.preference.Preference
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.support.v4.app.DialogFragment
-keep public class * extends com.actionbarsherlock.app.SherlockListFragment
-keep public class * extends com.actionbarsherlock.app.SherlockFragment
-keep public class * extends com.actionbarsherlock.app.SherlockFragmentActivity
-keep public class * extends android.app.Fragment
-keep public class com.android.vending.licensing.ILicensingService
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
-dontwarn com.google.ads.**
i am not able to configure proguard for my project. Following are the error that i am getting while i am trying to compile.
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$Style
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder addAction(int,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification$Builder
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification build()' in class android.app.Notification$Builder
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder setPriority(int)' in class android.app.Notification$Builder
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder setStyle(android.app.Notification$Style)' in class android.app.Notification$Builder
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.dynamic.b: can't find referenced method 'android.app.Fragment getParentFragment()' in class android.app.Fragment
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.internal.an$2: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.internal.fw: can't find referenced method 'boolean isActiveNetworkMetered()' in class android.net.ConnectivityManager
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.internal.gp: can't find referenced method 'java.lang.String getDefaultUserAgent(android.content.Context)' in class android.webkit.WebSettings
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.internal.gp: can't find referenced method 'void setMediaPlaybackRequiresUserGesture(boolean)' in class android.webkit.WebSettings
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.internal.gv: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:42:12 - PsiphonAndroid] You should check if you need to specify additional program jars.
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: there were 22 unresolved references to classes or interfaces.
[2015-02-20 23:42:12 - PsiphonAndroid] You may need to specify additional library jars (using '-libraryjars').
[2015-02-20 23:42:12 - PsiphonAndroid] Warning: there were 12 unresolved references to program class members.
[2015-02-20 23:42:12 - PsiphonAndroid] Your input classes appear to be inconsistent.
[2015-02-20 23:42:12 - PsiphonAndroid] You may need to recompile them and try again.
[2015-02-20 23:42:12 - PsiphonAndroid] Alternatively, you may have to specify the option
[2015-02-20 23:42:12 - PsiphonAndroid] '-dontskipnonpubliclibraryclassmembers'.
[2015-02-20 23:42:12 - PsiphonAndroid] java.io.IOException: Please correct the above warnings first.
[2015-02-20 23:42:12 - PsiphonAndroid] at proguard.Initializer.execute(Initializer.java:321)
[2015-02-20 23:42:12 - PsiphonAndroid] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-02-20 23:42:12 - PsiphonAndroid] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-02-20 23:42:12 - PsiphonAndroid] at proguard.ProGuard.main(ProGuard.java:492)
[2015-02-20 23:44:06 - PsiphonAndroid] Proguard returned with error code 1. See console
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$Style
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder addAction(int,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification$Builder
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification build()' in class android.app.Notification$Builder
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder setPriority(int)' in class android.app.Notification$Builder
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder setStyle(android.app.Notification$Style)' in class android.app.Notification$Builder
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.dynamic.b: can't find referenced method 'android.app.Fragment getParentFragment()' in class android.app.Fragment
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.internal.an$2: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.internal.fw: can't find referenced method 'boolean isActiveNetworkMetered()' in class android.net.ConnectivityManager
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.internal.gp: can't find referenced method 'java.lang.String getDefaultUserAgent(android.content.Context)' in class android.webkit.WebSettings
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.internal.gp: can't find referenced method 'void setMediaPlaybackRequiresUserGesture(boolean)' in class android.webkit.WebSettings
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.google.android.gms.internal.gv: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:44:06 - PsiphonAndroid] You should check if you need to specify additional program jars.
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: there were 13 unresolved references to classes or interfaces.
[2015-02-20 23:44:06 - PsiphonAndroid] You may need to specify additional library jars (using '-libraryjars').
[2015-02-20 23:44:06 - PsiphonAndroid] Warning: there were 12 unresolved references to program class members.
[2015-02-20 23:44:06 - PsiphonAndroid] Your input classes appear to be inconsistent.
[2015-02-20 23:44:06 - PsiphonAndroid] You may need to recompile them and try again.
[2015-02-20 23:44:06 - PsiphonAndroid] Alternatively, you may have to specify the option
[2015-02-20 23:44:06 - PsiphonAndroid] '-dontskipnonpubliclibraryclassmembers'.
[2015-02-20 23:44:06 - PsiphonAndroid] java.io.IOException: Please correct the above warnings first.
[2015-02-20 23:44:06 - PsiphonAndroid] at proguard.Initializer.execute(Initializer.java:321)
[2015-02-20 23:44:06 - PsiphonAndroid] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-02-20 23:44:06 - PsiphonAndroid] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-02-20 23:44:06 - PsiphonAndroid] at proguard.ProGuard.main(ProGuard.java:492)
[2015-02-20 23:46:31 - test] C:\My Drive\ultimatesid wrkspace\test\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-02-20 23:46:31 - test]
[2015-02-20 23:46:31 - test] C:\My Drive\ultimatesid wrkspace\test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-02-20 23:46:31 - test]
[2015-02-20 23:46:31 - test] C:\My Drive\ultimatesid wrkspace\test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-02-20 23:46:31 - test]
[2015-02-20 23:47:20 - test] C:\My Drive\ultimatesid wrkspace\test\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-02-20 23:47:20 - test]
[2015-02-20 23:47:20 - test] C:\My Drive\ultimatesid wrkspace\test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2015-02-20 23:47:20 - test]
[2015-02-20 23:47:20 - test] C:\My Drive\ultimatesid wrkspace\test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2015-02-20 23:47:20 - test]
[2015-02-20 23:48:08 - PsiphonAndroid] Proguard returned with error code 1. See console
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$Style
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class android.app.Notification$BigTextStyle
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder addAction(int,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification$Builder
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification build()' in class android.app.Notification$Builder
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder setPriority(int)' in class android.app.Notification$Builder
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'android.app.Notification$Builder setStyle(android.app.Notification$Style)' in class android.app.Notification$Builder
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.dynamic.b: can't find referenced method 'android.app.Fragment getParentFragment()' in class android.app.Fragment
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.fitness.service.FitnessSensorService$a: can't find referenced class android.app.AppOpsManager
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.internal.an$2: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.internal.fw: can't find referenced method 'boolean isActiveNetworkMetered()' in class android.net.ConnectivityManager
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.internal.gp: can't find referenced method 'java.lang.String getDefaultUserAgent(android.content.Context)' in class android.webkit.WebSettings
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.internal.gp: can't find referenced method 'void setMediaPlaybackRequiresUserGesture(boolean)' in class android.webkit.WebSettings
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.google.android.gms.internal.gv: can't find referenced method 'void evaluateJavascript(java.lang.String,android.webkit.ValueCallback)' in class android.webkit.WebView
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.WebViewProxySettings: can't find referenced class android.util.ArrayMap
[2015-02-20 23:48:08 - PsiphonAndroid] You should check if you need to specify additional program jars.
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: there were 13 unresolved references to classes or interfaces.
[2015-02-20 23:48:08 - PsiphonAndroid] You may need to specify additional library jars (using '-libraryjars').
[2015-02-20 23:48:08 - PsiphonAndroid] Warning: there were 12 unresolved references to program class members.
[2015-02-20 23:48:08 - PsiphonAndroid] Your input classes appear to be inconsistent.
[2015-02-20 23:48:08 - PsiphonAndroid] You may need to recompile them and try again.
[2015-02-20 23:48:08 - PsiphonAndroid] Alternatively, you may have to specify the option
[2015-02-20 23:48:08 - PsiphonAndroid] '-dontskipnonpubliclibraryclassmembers'.
[2015-02-20 23:48:08 - PsiphonAndroid] java.io.IOException: Please correct the above warnings first.
[2015-02-20 23:48:08 - PsiphonAndroid] at proguard.Initializer.execute(Initializer.java:321)
[2015-02-20 23:48:08 - PsiphonAndroid] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-02-20 23:48:08 - PsiphonAndroid] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-02-20 23:48:08 - PsiphonAndroid] at proguard.ProGuard.main(ProGuard.java:492)
[2015-02-20 23:50:13 - PsiphonAndroid] Proguard returned with error code 1. See console
[2015-02-20 23:50:13 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:50:13 - PsiphonAndroid] Warning: com.psiphon3.psiphonlibrary.Utils: can't find referenced class android.net.LinkProperties
[2015-02-20 23:50:13 - PsiphonAndroid] You should check if you need to specify additional program jars.
[2015-02-20 23:50:13 - PsiphonAndroid] Warning: there were 2 unresolved references to classes or interfaces.
[2015-02-20 23:50:13 - PsiphonAndroid] You may need to specify additional library jars (using '-libraryjars').
[2015-02-20 23:50:13 - PsiphonAndroid] java.io.IOException: Please correct the above warnings first.
[2015-02-20 23:50:13 - PsiphonAndroid] at proguard.Initializer.execute(Initializer.java:321)
[2015-02-20 23:50:13 - PsiphonAndroid] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-02-20 23:50:13 - PsiphonAndroid] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-02-20 23:50:13 - PsiphonAndroid] at proguard.ProGuard.main(ProGuard.java:492)
This is my proguard properties file:
# 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 edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard- project.txt
#proguard.config=proguard-project.txt
#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard- project.txt
# Project target.
target=android-19
android.library.reference.1=..\\PsiphonAndroidLibrary
android.library.reference.2=..\\..\\..\\..\\..\\Users\\TVS\\Desktop\\codecanyon- 9585545-red-and-yellow-addictive-game-admob-integrated\\RedAndYellow\\Libraries\\google-play-services_lib
android.library.reference.3=..\\..\\..\\google-play-services_lib
Also check if your android manifest targetSdkVersion is same with your project.properties target :
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
project.properties
# Project target.
target=android-21
I have added the latest Google Play Services to the project and now proguard is giving
me many warnings:
[2014-07-31 17:21:50 - MyApp] Proguard returned with error code 1. See console
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced method 'void setShowsDialog(boolean)' in class com.google.android.gms.common.SupportErrorDialogFragment
[2014-07-31 17:21:50 - MyApp] Warning: com.google.android.gms.common.api.d: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.google.android.gms.common.api.d
[2014-07-31 17:21:50 - MyApp] You should check if you need to specify additional program jars.
[2014-07-31 17:21:50 - MyApp] Warning: there were 9 unresolved references to classes or interfaces.
[2014-07-31 17:21:50 - MyApp] You may need to specify additional library jars (using '-libraryjars').
[2014-07-31 17:21:50 - MyApp] Warning: there were 2 unresolved references to program class members.
[2014-07-31 17:21:50 - MyApp] Your input classes appear to be inconsistent.
[2014-07-31 17:21:50 - MyApp] You may need to recompile them and try again.
[2014-07-31 17:21:50 - MyApp] Alternatively, you may have to specify the option
[2014-07-31 17:21:50 - MyApp] '-dontskipnonpubliclibraryclassmembers'.
[2014-07-31 17:21:50 - MyApp] java.io.IOException: Please correct the above warnings first.
[2014-07-31 17:21:50 - MyApp] at proguard.Initializer.execute(Initializer.java:321)
[2014-07-31 17:21:50 - MyApp] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-07-31 17:21:50 - MyApp] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-07-31 17:21:50 - MyApp] at proguard.ProGuard.main(ProGuard.java:492)
I have tried adding
-dontwarn com.google.android.gms.*
-keep class android.support.v4.** { *; }
to the proguard configuration fil but with no luck. I am targeting android 17 (4.2.2) in my app and the min SDK version is 8 (2.2 I think).
Any help solving this error will be appreciated.
Make sure you have setup your project with Android 4.4.2 and you have "include android- support-v13.jar". I have the same problem but it's fixed now.
Did you add:
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames #com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
#com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
In your Proguard?
http://developer.android.com/google/play-services/setup.html
Seems the google play service jar is referencing some classes from android-support-v13.jar.
So adding following line in proguard-project.txt will solve the problem:
-libraryjars <ANDROID_SDK_PATH>/extras/android/support/v13/android-support-v13.jar
You need to download this jar using Android SDK manager.
Please don't close this as a duplicate!
I have tried upgrading to proguard 4.11
I have tried adding my the libraries I use and the libraries the libraries i use use (does that make sense :O)
I have tried adding -keep class com.google.** and keeping other classes
I have tried -dontwarn fi.foyt.*
Here are the related files:
proguard-project.txt
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
-libraryjars libs/android-support-v4.jar
-libraryjars libs/crashlytics.jar
-libraryjars libs/libGoogleAnalyticsServices.jar
-libraryjars other/easyfoursquare4android/easyFoursquare4Android/bin/easyfousquareactivity.jar
-libraryjars other/foursquare-android-oauth/foursquare-oauth-library/bin/foursquare-oauth-library.jar
-libraryjars other/easyfoursquare4android/easyFoursquare4Android/libs/foursquare-api-1.0.2.jar
-libraryjars other/easyfoursquare4android/easyFoursquare4Android/libs/gson-2.2.1.jar
#-keep class com.google.** { *; }
#-keep class fi.foyt.foursquare.** { *; }
#-keep class javax.** { *; }
#-keep class org.** { *; }
#-dontwarn fi.foyt.*
#-keep class fi.foyt.**
#-keep public class android.content.Context
#-keep public interface fi.foyt.**
#-keep public class fi.foyt.**
#-dontwarn android.support.v4.**
#-keep class java.lang.reflect.**
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
project.properties
# 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 edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-19
android.library.reference.1=other/foursquare-android-oauth/foursquare-oauth-library
android.library.reference.2=other/easyfoursquare4android/easyFoursquare4Android
Related console log: (click me for full log)
[2014-03-26 01:25:30 - MyAppName] Note: duplicate definition of library class [com.google.gson.JsonSerializationContext]
[2014-03-26 01:25:30 - MyAppName] Reading library jar [/Users/shereef/android-sdks/platforms/android-19/android.jar]
[2014-03-26 01:25:31 - MyAppName] Note: there were 1486 duplicate class definitions.
[2014-03-26 01:25:31 - MyAppName] Initializing...
[2014-03-26 01:25:31 - MyAppName] (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
[2014-03-26 01:25:31 - MyAppName] Note: the configuration refers to the unknown class 'com.google.vending.licensing.ILicensingService'
[2014-03-26 01:25:31 - MyAppName] Note: the configuration refers to the unknown class 'com.android.vending.licensing.ILicensingService'
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions$Builder
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchServiceFactory
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions$Builder
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchServiceFactory
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Note: android.support.v4.text.ICUCompatIcs: can't find dynamically referenced class libcore.icu.ICU
[2014-03-26 01:25:32 - MyAppName] Note: com.google.gson.internal.UnsafeAllocator: can't find dynamically referenced class sun.misc.Unsafe
[2014-03-26 01:25:32 - MyAppName] Note: there were 2 references to unknown classes.
[2014-03-26 01:25:32 - MyAppName] You should check your configuration for typos.
[2014-03-26 01:25:32 - MyAppName] (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
[2014-03-26 01:25:32 - MyAppName] Warning: there were 35 unresolved references to classes or interfaces.
[2014-03-26 01:25:32 - MyAppName] Note: there were 2 unresolved dynamic references to classes or interfaces.
[2014-03-26 01:25:32 - MyAppName] You should check if you need to specify additional program jars.
[2014-03-26 01:25:32 - MyAppName] (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
[2014-03-26 01:25:32 - MyAppName] You may need to add missing library jars or update their versions.
[2014-03-26 01:25:32 - MyAppName] If your code works fine without the missing classes, you can suppress
[2014-03-26 01:25:32 - MyAppName] the warnings with '-dontwarn' options.
[2014-03-26 01:25:32 - MyAppName] (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
[2014-03-26 01:25:32 - MyAppName] java.io.IOException: Please correct the above warnings first.
[2014-03-26 01:25:32 - MyAppName] at proguard.Initializer.execute(Initializer.java:369)
[2014-03-26 01:25:32 - MyAppName] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-03-26 01:25:32 - MyAppName] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-03-26 01:25:32 - MyAppName] at proguard.ProGuard.main(ProGuard.java:483)
[2014-03-26 01:25:32 - MyAppName] Proguard returned with error code 1. See console
[2014-03-26 01:25:32 - MyAppName] Note: there were 1486 duplicate class definitions.
[2014-03-26 01:25:32 - MyAppName] (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions$Builder
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchServiceFactory
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions$Builder
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.FetchOptions
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchServiceFactory
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPMethod
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.URLFetchService
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.api.io.GAEIOHandler: can't find referenced class com.google.appengine.api.urlfetch.HTTPResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletRequest
[2014-03-26 01:25:32 - MyAppName] Warning: fi.foyt.foursquare.example.AuthenticationExample: can't find referenced class javax.servlet.http.HttpServletResponse
[2014-03-26 01:25:32 - MyAppName] Warning: there were 35 unresolved references to classes or interfaces.
[2014-03-26 01:25:32 - MyAppName] You may need to add missing library jars or update their versions.
[2014-03-26 01:25:32 - MyAppName] If your code works fine without the missing classes, you can suppress
[2014-03-26 01:25:32 - MyAppName] the warnings with '-dontwarn' options.
[2014-03-26 01:25:32 - MyAppName] (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
[2014-03-26 01:25:32 - MyAppName] java.io.IOException: Please correct the above warnings first.
[2014-03-26 01:25:32 - MyAppName] at proguard.Initializer.execute(Initializer.java:369)
[2014-03-26 01:25:32 - MyAppName] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-03-26 01:25:32 - MyAppName] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-03-26 01:25:32 - MyAppName] at proguard.ProGuard.main(ProGuard.java:483)
[2014-03-26 01:25:32 - EasyFousquareActivity] Using default Build Tools revision 19.0.3
Check my proguard-project.txt I have commented the lines I have tried but didn't make sense
Some classes like com.google.appengine.api.urlfetch.HTTPMethod are missing from your libraries. Apparently, your application doesn't use them anyway, so you can tell ProGuard it's okay. For instance:
-dontwarn fi.foyt.foursquare.**
-dontnote libcore.icu.ICU
-dontnote sun.misc.Unsafe
See the ProGuard manual > Troubleshooting > Warning: can't find referenced class.
Furthermore, you shouldn't specify -injars or -libraryjars options in your configuration file. The Ant/Eclipse/Gradle build process already automatically specifies all the necessary -injars, -outjars, and -libraryjars for you, based on the contents of your project.
See the ProGuard manual > Troubleshooting > Note: duplicate definition of program/library class
Have been battling with Proguard all day and have tried many examples and solutions on the official Proguard site as well as StackOverflow.
I have a large project I need to obfuscate, which has a number of referenced library projects and Jars.
I am getting 725 warnings from proguard from 2 libs, com.google.common and twitter4j.
I can happily get the project to compile if I add the following:
-dontwarn com.google.common.**
-dontwarn twitter4j.**
However, the app crashes instantly on open, so this seems to just be a way of hiding an issue, not fixing it.
The proguard-project.txt is in the project root and its config is in the project.properties file as below.
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
Here is my proguard-project.txt file
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-dontshrink
-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 class javax.** { *; }
-keep class org.** { *; }
-keep class twitter4j.** { *; }
-keep class com.google.code.** { *; }
-keep class java.lang.management.** { *; }
-keep class com.google.common.** { *; }
-libraryjars C:/adt-bundle-windows/sdk/platforms/android-19/android.jar
-libraryjars C:/adt-bundle-windows/sdk/extras/android/support/v4/android-support-v4.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/commons-codec.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/sqlcipher.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/twitter4j-core-3.0.3.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/guava-r09.jar
-libraryjars C:/adt-bundle-windows/sdk/platforms/android-19/android.jar
-libraryjars C:/adt-bundle-windows/sdk/extras/android/support/v4/android-support-v4.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/maps.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/effects.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/usb.jar
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.content.Context {
public void *(android.view.View);
public void *(android.view.MenuItem);
}
-keepclassmembers class * implements android.os.Parcelable {
static ** CREATOR;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
-keepclassmembers class * {
#android.webkit.JavascriptInterface <methods>;
}
-dontwarn android.support.**
And Here is the truncated error log
[2014-01-13 14:00:07 - MyApp] Proguard returned with error code 1. See console
[2014-01-13 14:00:07 - MyApp] Note: there were 9032 duplicate class definitions.
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find superclass or interface javax.management.DynamicMBean
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions$ConstantFunction: can't find referenced class javax.annotation.Nullable
*********************************** ANOTHER 500 LINES OF com.google.common ERRORS ******************************************
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
*********************************** ANOTHER 500 LINES OF twitter4j ERRORS ******************************************
[2014-01-13 14:00:07 - MyApp] You should check if you need to specify additional program jars.
[2014-01-13 14:00:07 - MyApp] Warning: there were 725 unresolved references to classes or interfaces.
[2014-01-13 14:00:07 - MyApp] You may need to specify additional library jars (using '-libraryjars').
[2014-01-13 14:00:07 - MyApp] java.io.IOException: Please correct the above warnings first.
[2014-01-13 14:00:07 - MyApp] at proguard.Initializer.execute(Initializer.java:321)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.main(ProGuard.java:492)
EDIT** Stack trace from crash, clearer now that it is linked to sqlcipher
E/Database(18203): Can't find SQLiteDatabase.mNativeHandle
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteCompiledSql
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteQuery
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteProgram
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteStatement
E/CursorWindow(18203): Can't find net/sqlcipher/CursorWindow
D/AndroidRuntime(18203): Shutting down VM
W/dalvikvm(18203): threadid=1: thread exiting with uncaught exception (group=0x415e9ba8)
E/AndroidRuntime(18203): FATAL EXCEPTION: main
E/AndroidRuntime(18203): Process: com.mycompany.android.myapp, PID: 18203
E/AndroidRuntime(18203): java.lang.NoClassDefFoundError: net/sqlcipher/CursorWindow
E/AndroidRuntime(18203): at java.lang.Runtime.nativeLoad(Native Method)
E/AndroidRuntime(18203): at java.lang.Runtime.doLoad(Runtime.java:421)
E/AndroidRuntime(18203): at java.lang.Runtime.loadLibrary(Runtime.java:362)
E/AndroidRuntime(18203): at java.lang.System.loadLibrary(System.java:526)
E/AndroidRuntime(18203): at net.sqlcipher.database.SQLiteDatabase.a(Unknown Source)
E/AndroidRuntime(18203): at net.sqlcipher.database.SQLiteDatabase.a(Unknown Source)
E/AndroidRuntime(18203): at com.mycompany.android.myapplib.sqlite.MyProvider.onCreate(Unknown Source)
E/AndroidRuntime(18203): at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
E/AndroidRuntime(18203): at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
E/AndroidRuntime(18203): at android.app.ActivityThread.installProvider(ActivityThread.java:4790)
E/AndroidRuntime(18203): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
E/AndroidRuntime(18203): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
E/AndroidRuntime(18203): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime(18203): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime(18203): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18203): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(18203): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(18203): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18203): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(18203): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(18203): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(18203): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteStatement
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteProgram
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteQuery
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteCompiledSql
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoSuchFieldError: no field with name='mNativeHandle' signature='I' in class Lnet/sqlcipher/database/SQLiteDatabase;
E/AndroidRuntime(18203): ... 22 more
These are the config I've used in the past for SQLcipher
-keep public class net.sqlcipher.** {
*;
}
-keep public class net.sqlcipher.database.** {
*;
}
I'll suggest you to add thoses 2 lines in your proguard file :
-dontwarn javax.management.**
-dontwarn org.apache.commons.logging.**
-keep class net.sqlcipher.** { *; }
-dontwarn net.sqlcipher.**
For more information