Fatal Error occurred after trying to export unsigned android application - android

I tried to export unsigned application from Eclipse to get the release file, it keeps giving me Fatal Error Code 1 with these details :
P.S we are using Twitter4J library while we do not use anything related to Facebook.
[2013-05-17 13:16:07 - Faltirha] Proguard returned with error code 1. See console
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.auth.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.auth.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.auth.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
[2013-05-17 13:16:07 - Faltirha] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find superclass or interface javax.management.DynamicMBean
[2013-05-17 13:16:07 - Faltirha] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2013-05-17 13:16:07 - Faltirha] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
[2013-05-17 13:16:07 - Faltirha] Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
......
[2013-05-17 13:16:07 - Faltirha] You should check if you need to specify additional program jars.
[2013-05-17 13:16:07 - Faltirha] Warning: there were 203 unresolved references to classes or interfaces.
[2013-05-17 13:16:07 - Faltirha] You may need to specify additional library jars (using '-libraryjars').
[2013-05-17 13:16:07 - Faltirha] Warning: there were 2 unresolved references to program class members.
[2013-05-17 13:16:07 - Faltirha] Your input classes appear to be inconsistent.
[2013-05-17 13:16:07 - Faltirha] You may need to recompile them and try again.
[2013-05-17 13:16:07 - Faltirha] Alternatively, you may have to specify the option
[2013-05-17 13:16:07 - Faltirha] '-dontskipnonpubliclibraryclassmembers'.
[2013-05-17 13:16:07 - Faltirha] java.io.IOException: Please correct the above warnings first.
[2013-05-17 13:16:07 - Faltirha] at proguard.Initializer.execute(Initializer.java:321)
[2013-05-17 13:16:07 - Faltirha] at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-05-17 13:16:07 - Faltirha] at proguard.ProGuard.execute(ProGuard.java:86)
[2013-05-17 13:16:07 - Faltirha] at proguard.ProGuard.main(ProGuard.java:492)
EDIT:
I was able to export the unsigned application by commenting this in the project-properties file
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project‌​.txt:proguard-google-api-client.txt
but I think this is not the solution!

I was able to overcome this exact issue by adding the line
-dontwarn com.google.android.gms.**
to my proguard-project.txt file.

I was able to export the unsigned application by commenting this (below) in the project-properties file
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project‌​.txt:proguard-google-api-client.txt
but I think this is not the proper solution!

No, the solution is not to comment it in the project properties file unless you dont care about encrypting your apk. If you don't care about someone decrypting your code, go ahead and remove it from the project properties file.

Related

Errors in Proguard using Eclipse with Universal ImageLoader Library and Animations

I am trying to protect my code by applying proguard in my code using eclipse i have used these libraries in my project inside libs folder
libs/AndroidViewAnimations-1.1.3.jar
libs/NineOldAndroid-2.4.0.jar
libs/universal-image-loader-1.9.2-with-sources.jar
libs/android-support-v4.jar
libs/AndroidEasingFunctions-1.0.0.jar
Here is my Project.properties content :
# 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-17
android.library.reference.1=..\\appcompat
android.library.reference.2=..\\google_play_services\\libproject\\google-play-services_lib
android.library.reference.3=../appcompat_v7
android.library.reference.4=../../adt-bundle-windows-x86_64-20140702/sdk/extras/google/google_play_services/libproject/google-play-services_lib
But i am failed to export APK i am getting following errors in console :
[2015-01-14 22:16:23 - MyGallery-master] Proguard returned with error code 1. See console
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.haarman.listviewanimations.BaseAdapterDecorator: can't find superclass or interface com.emilsjolander.components.stickylistheaders.StickyListHeadersAdapter
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.haarman.listviewanimations.BaseAdapterDecorator: can't find referenced class com.emilsjolander.components.stickylistheaders.StickyListHeadersAdapter
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.haarman.listviewanimations.BaseAdapterDecorator: can't find referenced class com.emilsjolander.components.stickylistheaders.StickyListHeadersAdapter
[2015-01-14 22:16:23 - MyGallery-master] Warning: com.haarman.listviewanimations.BaseAdapterDecorator: can't find referenced class com.emilsjolander.components.stickylistheaders.StickyListHeadersAdapter
[2015-01-14 22:16:23 - MyGallery-master] You should check if you need to specify additional program jars.
[2015-01-14 22:16:23 - MyGallery-master] Warning: there were 13 unresolved references to classes or interfaces.
[2015-01-14 22:16:23 - MyGallery-master] You may need to specify additional library jars (using '-libraryjars').
[2015-01-14 22:16:23 - MyGallery-master] java.io.IOException: Please correct the above warnings first.
[2015-01-14 22:16:23 - MyGallery-master] at proguard.Initializer.execute(Initializer.java:321)
[2015-01-14 22:16:23 - MyGallery-master] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-01-14 22:16:23 - MyGallery-master] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-01-14 22:16:23 - MyGallery-master] at proguard.ProGuard.main(ProGuard.java:492)
[2015-01-14 22:25:13 - MyGallery-master] Proguard returned with error code 1. See console
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-01-14 22:25:13 - MyGallery-master] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle
[2015-01-14 22:25:13 - MyGallery-master] You should check if you need to specify additional program jars.
[2015-01-14 22:25:13 - MyGallery-master] Warning: there were 9 unresolved references to classes or interfaces.
[2015-01-14 22:25:13 - MyGallery-master] You may need to specify additional library jars (using '-libraryjars').
[2015-01-14 22:25:13 - MyGallery-master] java.io.IOException: Please correct the above warnings first.
[2015-01-14 22:25:13 - MyGallery-master] at proguard.Initializer.execute(Initializer.java:321)
[2015-01-14 22:25:13 - MyGallery-master] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-01-14 22:25:13 - MyGallery-master] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-01-14 22:25:13 - MyGallery-master] at proguard.ProGuard.main(ProGuard.java:492)
For the ListViewAnimations i added the following in my config file:-
-dontwarn com.nhaarman.listviewanimations.**
Try it and let me know

Problems with ProGuard and AdMob

I'm experimenting problems to sign my app using ProGuard and the new AdMob library (Google Play Services Lib Project)
Console is giving me these errors:
[2014-04-26 16:41:33 - MyProject] Proguard returned with error code 1. See console
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics$b: can't find superclass or interface android.app.Application$ActivityLifecycleCallbacks
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.ImageManager$e: can't find superclass or interface android.content.ComponentCallbacks2
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics: can't find referenced class android.app.Application$ActivityLifecycleCallbacks
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics: can't find referenced method 'void registerActivityLifecycleCallbacks(android.app.Application$ActivityLifecycleCallbacks)' in class android.app.Application
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.analytics.GoogleAnalytics$b: can't find referenced class android.app.Application$ActivityLifecycleCallbacks
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.ImageManager: can't find referenced method 'void registerComponentCallbacks(android.content.ComponentCallbacks)' in class android.content.Context
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.ImageManager$e: can't find referenced class android.content.ComponentCallbacks2
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.a: can't find referenced method 'android.graphics.drawable.Drawable[] getCompoundDrawablesRelative()' in class android.widget.TextView
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.common.images.a: can't find referenced method 'void setCompoundDrawablesRelativeWithIntrinsicBounds(android.graphics.drawable.Drawable,android.graphics.drawable.Drawable,android.graphics.drawable.Drawable,android.graphics.drawable.Drawable)' in class android.widget.TextView
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.cx: can't find referenced method 'java.lang.String getDefaultUserAgent(android.content.Context)' in class android.webkit.WebSettings
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.cx: can't find referenced method 'void setMediaPlaybackRequiresUserGesture(boolean)' in class android.webkit.WebSettings
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.gd$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2014-04-26 16:41:33 - MyProject] Warning: com.google.android.gms.internal.gd$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2014-04-26 16:41:33 - MyProject] You should check if you need to specify additional program jars.
[2014-04-26 16:41:33 - MyProject] Warning: there were 5 unresolved references to classes or interfaces.
[2014-04-26 16:41:33 - MyProject] You may need to specify additional library jars (using '-libraryjars').
[2014-04-26 16:41:33 - MyProject] Warning: there were 8 unresolved references to program class members.
[2014-04-26 16:41:33 - MyProject] Your input classes appear to be inconsistent.
[2014-04-26 16:41:33 - MyProject] You may need to recompile them and try again.
[2014-04-26 16:41:33 - MyProject] Alternatively, you may have to specify the option
[2014-04-26 16:41:33 - MyProject] '-dontskipnonpubliclibraryclassmembers'.
[2014-04-26 16:41:33 - MyProject] java.io.IOException: Please correct the above warnings first.
[2014-04-26 16:41:33 - MyProject] at proguard.Initializer.execute(Initializer.java:321)
[2014-04-26 16:41:33 - MyProject] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-04-26 16:41:33 - MyProject] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-04-26 16:41:33 - MyProject] at proguard.ProGuard.main(ProGuard.java:492)
I can't find any way to solve this on internet.
maybe you should add this to your proguard.txt :
-dontwarn com.google.android.gms.**
good luck.

Android - can't export apk with Proguard, when using Joda Time

I use joda-time.jar in my app, and when exporting signed apk proguard saying something like (it is pretty common problem as I can see, when I look over internet):
[2014-01-07 12:44:53 - XYZ] Proguard returned with error code 1. See console
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.DateMidnight: can't find referenced class org.joda.convert.FromString
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.DateTime: can't find referenced class org.joda.convert.FromString
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.Days: can't find referenced class org.joda.convert.FromString
...
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.Years: can't find referenced class org.joda.convert.FromString
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.Years: can't find referenced class org.joda.convert.ToString
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.base.AbstractDuration: can't find referenced class org.joda.convert.ToString
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.base.AbstractInstant: can't find referenced class org.joda.convert.ToString
[2014-01-07 12:44:53 - XYZ] Warning: org.joda.time.base.AbstractPeriod: can't find referenced class org.joda.convert.ToString
[2014-01-07 12:44:53 - XYZ] You should check if you need to specify additional program jars.
[2014-01-07 12:44:53 - XYZ] Warning: there were 37 unresolved references to classes or interfaces.
[2014-01-07 12:44:53 - XYZ] You may need to specify additional library jars (using '-libraryjars').
[2014-01-07 12:44:53 - XYZ] java.io.IOException: Please correct the above warnings first.
[2014-01-07 12:44:53 - XYZ] at proguard.Initializer.execute(Initializer.java:321)
[2014-01-07 12:44:53 - XYZ] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-01-07 12:44:53 - XYZ] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-01-07 12:44:53 - XYZ] at proguard.ProGuard.main(ProGuard.java:492)
Everywhere in forums or also here (Android - Proguard didn't compile with Joda Time jar file) they say solution should be downloading joda-convert.jar, adding to buildpath. But for me it just DOESN'T WORK, after I did it, proguard again says something similar:
[2014-01-07 12:41:39 - XYZ] Proguard returned with error code 1. See console
[2014-01-07 12:41:39 - XYZ] Warning: org.joda.convert.JDKStringConverter$9: can't find referenced class javax.xml.bind.DatatypeConverter
[2014-01-07 12:41:39 - XYZ] Warning: org.joda.convert.JDKStringConverter$9: can't find referenced class javax.xml.bind.DatatypeConverter
[2014-01-07 12:41:39 - XYZ] Warning: org.joda.convert.JDKStringConverter$9: can't find referenced class javax.xml.bind.DatatypeConverter
[2014-01-07 12:41:39 - XYZ] You should check if you need to specify additional program jars.
[2014-01-07 12:41:39 - XYZ] Warning: there were 3 unresolved references to classes or interfaces.
[2014-01-07 12:41:39 - XYZ] You may need to specify additional library jars (using '-libraryjars').
[2014-01-07 12:41:39 - XYZ] java.io.IOException: Please correct the above warnings first.
[2014-01-07 12:41:39 - XYZ] at proguard.Initializer.execute(Initializer.java:321)
[2014-01-07 12:41:39 - XYZ] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-01-07 12:41:39 - XYZ] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-01-07 12:41:39 - XYZ] at proguard.ProGuard.main(ProGuard.java:492)
How to fix this issue? I spend few hours of trying everything, but I just can't find it out...Many thanks!
Ok I figured it out. Actually adding joda-convert.jar to build path works, but only for older version (1.4 and lower, if you download latest one - 1.5 joda-convert.jar, it doesn't work)...

Implementing Proguard Security with my APK

I want to configure proguard with my Application. But while doing so I am receiving the following problems :
[2013-09-24 12:27:46 - DemoProguard] Proguard returned with error code 1. See console
[2013-09-24 12:27:46 - DemoProguard] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2013-09-24 12:27:46 - DemoProguard] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2013-09-24 12:27:46 - DemoProguard] You should check if you need to specify additional program jars.
[2013-09-24 12:27:46 - DemoProguard] Warning: there were 2 unresolved references to program class members.
[2013-09-24 12:27:46 - DemoProguard] Your input classes appear to be inconsistent.
[2013-09-24 12:27:46 - DemoProguard] You may need to recompile them and try again.
[2013-09-24 12:27:46 - DemoProguard] Alternatively, you may have to specify the option
[2013-09-24 12:27:46 - DemoProguard] '-dontskipnonpubliclibraryclassmembers'.
[2013-09-24 12:27:46 - DemoProguard] java.io.IOException: Please correct the above warnings first.
[2013-09-24 12:27:46 - DemoProguard] at proguard.Initializer.execute(Initializer.java:321)
[2013-09-24 12:27:46 - DemoProguard] at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-09-24 12:27:46 - DemoProguard] at proguard.ProGuard.execute(ProGuard.java:86)
[2013-09-24 12:27:46 - DemoProguard] at proguard.ProGuard.main(ProGuard.java:492)
[2013-09-24 12:40:50 - DemoProguard] Proguard returned with error code 1. See console
[2013-09-24 12:40:50 - DemoProguard] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
[2013-09-24 12:40:50 - DemoProguard] Warning: com.google.android.gms.internal.bn$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
[2013-09-24 12:40:50 - DemoProguard] You should check if you need to specify additional program jars.
[2013-09-24 12:40:50 - DemoProguard] Warning: there were 2 unresolved references to program class members.
[2013-09-24 12:40:50 - DemoProguard] Your input classes appear to be inconsistent.
[2013-09-24 12:40:50 - DemoProguard] You may need to recompile them and try again.
[2013-09-24 12:40:50 - DemoProguard] Alternatively, you may have to specify the option
[2013-09-24 12:40:50 - DemoProguard] '-dontskipnonpubliclibraryclassmembers'.
[2013-09-24 12:40:50 - DemoProguard] java.io.IOException: Please correct the above warnings first.
[2013-09-24 12:40:50 - DemoProguard] at proguard.Initializer.execute(Initializer.java:321)
[2013-09-24 12:40:50 - DemoProguard] at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-09-24 12:40:50 - DemoProguard] at proguard.ProGuard.execute(ProGuard.java:86)
[2013-09-24 12:40:50 - DemoProguard] at proguard.ProGuard.main(ProGuard.java:492)
Here is my proguard-text file
# 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:
-dontskipnonpubliclibraryclassmembers
# 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 *;
#}
try to add these line very first on our proguard.cfg file on your project as below:
-ignorewarnings
if you have any annotation in your project so, please add the next line as below
-keepattributes *Annotation*
and ensure your gradle file has minifyEnabled as false

Proguard error, can't export app

[2013-01-25 15:20:55 - CQAQI] Proguard returned with error code 1. See console
[2013-01-25 15:20:55 - CQAQI] Note: there were 208 duplicate class definitions.
[2013-01-25 15:20:55 - CQAQI] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'int getLabelFor()' in class android.view.View
[2013-01-25 15:20:55 - CQAQI] Warning: android.support.v4.view.ViewCompatJellybeanMr1: can't find referenced method 'void setLabelFor(int)' in class android.view.View
[2013-01-25 15:20:55 - CQAQI] Warning: there were 2 unresolved references to program class members.
[2013-01-25 15:20:55 - CQAQI] Your input classes appear to be inconsistent.
[2013-01-25 15:20:55 - CQAQI] You may need to recompile them and try again.
[2013-01-25 15:20:55 - CQAQI] Alternatively, you may have to specify the option
[2013-01-25 15:20:55 - CQAQI] '-dontskipnonpubliclibraryclassmembers'.
[2013-01-25 15:20:55 - CQAQI] Error: Please correct the above warnings first.
When I export app I get an error, even after updating to Proguard 4.8. What can I do?
try this:
-dontwarn android.support.v4.view.**
-keep class android.support.v4.** { *; }
I had the same error.
Building with SDK level 4.2.2 worked for me!

Categories

Resources