Welcome Android Developpers
Welcome Android Developpers
My name is Mathias Séguy, I am an Android Expert and Trainer and created the Android2EE company.
For full information, it’s here : Android2EE's Training
You can meet me on Google+, follow me on Twitter or on LinkedIn
My name is Mathias Séguy, I am an Android Expert and Trainer and created the Android2EE company.
For full information, it’s here : Android2EE's Training
You can meet me on Google+, follow me on Twitter or on LinkedIn
Friday, April 6, 2012
Export Aborted because fatal lint errors where found... WTF !!!.
Hello,
So today, you woke up this morning and thought, "I would rebuild my Android application, good idea". You didn't change anything, but when you do "Android Tools-> Export signed application" a strange message appeared on the top of eclipse:
"Export aborted because fatal lint errors were found. These are listed in the Lint View... Blablabla..."
Ok so you took your coffe and now you're back again in front of the computer trying to find the Lint View. And you read in the LintView the following message when you click on the line "Obsolete Proguard File...":
Obsolete ProGuard file; use -keepclasseswithmembers instead of -keepclasseswithmembernames
Issue: Looks for problems in proguard config files
Id: Proguard
Using -keepclasseswithmembernames in a proguard config file is not correct; it can cause some symbols to be renamed which should not be.
Earlier versions of ADT used to create proguard.cfg files with the wrong format. Instead of -keepclasseswithmembernames use -keepclasseswithmembers, since the old flags also implies "allow shrinking" which means symbols only referred to from XML and not Java (such as possibly CustomViews) can get deleted.
http://http://code.google.com/p/android/issues/detail?id=16384
Ok don't panic, open your proguard-project.txt (it's a file at the root of your eclipse project) and just change the words keepclasseswithmembernames by keepclasseswithmember (delete name at the end of the word). (you should have 3 changes to do).
Save the file (it is renammed as proguard.cfg automaticly), relaunch the "Android Tools-> Export signed application" , it works.
This is due to the ADT update to the version 17.
So, Thanks who?
Thanks, Android2ee, the Android Programming Ebooks :o)
Mathias Séguy
mathias.seguy.it@gmail.com
Auteur Android2EE
Ebooks to learn Android Programming.
Meet me on Google+
Follow me on Twitter
Join my LinkedIn network ou Viadeo
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment