Tuesday, July 19, 2011

Android AdMob & ProGuard

On most devices, using AdMob in an obfuscated application (using ProGuard) works perfectly fine. However, on a few devices (I don't know which ones), you'll get a java.lang.NoSuchMethodError and your users will be angry. Here's the full stack trace: java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:200) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) at java.lang.Thread.run(Thread.java:1102) Caused by: java.lang.NoSuchMethodError: com.google.gson.Gson.a at c.a(Unknown Source) at c.doInBackground(Unknown Source) at android.os.AsyncTask$2.call(AsyncTask.java:185) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) ... 4 more When I first got this report I quickly realized it wasn't my fault, since I don't use gson. To cut to the chase, here's what I put in my procfg.txt to fix it (at least for now): -keep public class com.google.ads.** { public protected *; } -keep public class com.google.gson.** { public protected *; }

46 comments:

  1. Thanks. I'm no trouble with this for now, but I prefer to prevent..

    ReplyDelete
  2. Thanks, I'm in trouble with this right now and I prefer this knowledge ..

    ReplyDelete
  3. oh god!! very very very veryvery veryvery veryvery very thank you ㅠㅠ

    ReplyDelete
  4. Thanks man.
    I too don't use Gson :)

    ReplyDelete
  5. Your topic was great! Thanks for taking a moment to draft such an interesting piece… Application Development using Angularjs

    ReplyDelete
  6. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command

    Data Science Course in Indira nagar | Data Science Course in Electronic city

    Python course in Kalyan nagar | Data Science course in Indira nagar

    Data Science Course in Marathahalli | Data Science Course in BTM Layout

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Your article increases the curiosity to learn more about this topic. Keep sharing your information regularly for future reference.
    Devops Training in Chennai | Devops Training Institute in Chennai

    ReplyDelete
  10. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    ReplyDelete
  11. Attend The Python training in bangalore From ExcelR. Practical Python training in bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python training in bangalore.
    python training in bangalore

    ReplyDelete
  12. I learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from hadoop training in btm experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Hadoop. Really worth trying

    ReplyDelete

  13. We provide a complete line of automatic transmission parts, overhaul kits, troubleshooting and overhaul guides to factory re-manufactured automatic transmissions . Shift kits are available, and more importantly shift enhancement kits are available, these enhancement kits fix know problems with automatic transmission. Enhancement kits correct design and manufacturing defects, yes they can be corrected after your vehicle has left the factory. If there is an enhancement kit available for you application be sure you have one installed before your transmission suffers costly failures. automatic transmission parts .

    ReplyDelete
  14. We offer replacement drivelines for the following Nissan models: 200SX, 240SX, 240Z, 260Z, 280Z, 280ZX, 300ZX, 510, 810, Axxess, B210, Maxima, Pickup Long Bed, Pickup Short Bed, Sentra, Stanza Van, and Van. In general Nissan driveshaft's have and integrated design, in some case two piece designs are used. This design is intended to completely eliminate natural frequency vibrations. universal nissan parts.

    ReplyDelete

  15. Most automatic transmissions even have associate oil coolers, so check the hoses and contours for leaks. A shredded CV boot can cause associate unsuccessful CV joint and CV shaft. And if you are performing on a [*fr1] shaft, confirm to ascertain the hub bearing for any play during which the hub nut is torqued properly. A sloppy higher ball joint or lower ball joint can chomp your tires, or maybe produce your 2011 ford f250 front drive shaft 1/2 Ton - Pickup additional sturdy to manage. U-joints got to be cozy, and there mustn't be any signs of a leak around the differential cowl.. ford f250 front drive shaft .

    ReplyDelete
  16. Look at the way my pal Wesley Virgin's autobiography starts in this shocking and controversial video.

    You see, Wesley was in the army-and shortly after leaving-he discovered hidden, "mind control" tactics that the government and others used to get everything they want.

    These are the EXACT same tactics tons of famous people (especially those who "became famous out of nothing") and the greatest business people used to become wealthy and famous.

    You probably know that you only use 10% of your brain.

    That's really because most of your brain's power is UNCONSCIOUS.

    Perhaps that thought has even occurred INSIDE OF YOUR own brain... as it did in my good friend Wesley Virgin's brain 7 years ago, while driving an unlicensed, beat-up garbage bucket of a vehicle with a suspended driver's license and with $3 on his banking card.

    "I'm absolutely frustrated with going through life paycheck to paycheck! When will I get my big break?"

    You took part in those questions, am I right?

    Your success story is going to happen. Go and take a leap of faith in YOURSELF.

    WATCH WESLEY SPEAK NOW

    ReplyDelete
  17. If you're attempting to lose pounds then you have to jump on this totally brand new personalized keto diet.

    To create this keto diet service, licensed nutritionists, fitness trainers, and chefs joined together to produce keto meal plans that are efficient, suitable, money-efficient, and fun.

    From their launch in early 2019, thousands of people have already transformed their body and well-being with the benefits a smart keto diet can give.

    Speaking of benefits; clicking this link, you'll discover eight scientifically-certified ones provided by the keto diet.

    ReplyDelete
  18. This way my buddy Wesley Virgin's tale begins with this SHOCKING AND CONTROVERSIAL VIDEO.

    Wesley was in the military-and shortly after leaving-he revealed hidden, "SELF MIND CONTROL" tactics that the CIA and others used to obtain whatever they want.

    THESE are the EXACT same methods many celebrities (especially those who "became famous out of nowhere") and top business people used to become rich and famous.

    You've heard that you utilize only 10% of your brain.

    Mostly, that's because most of your BRAINPOWER is UNCONSCIOUS.

    Maybe this thought has even occurred INSIDE your very own head... as it did in my good friend Wesley Virgin's head around 7 years ago, while riding a non-registered, beat-up garbage bucket of a car with a suspended driver's license and with $3.20 on his bank card.

    "I'm very frustrated with going through life payroll to payroll! Why can't I become successful?"

    You've taken part in those types of thoughts, isn't it so?

    Your success story is waiting to start. All you have to do is in YOURSELF.

    WATCH WESLEY SPEAK NOW

    ReplyDelete
  19. We develop free teaching aids for parents and educators to teach English to pre-school children. For more info please visit here: English for children

    ReplyDelete
  20. This information is impressive. I am inspired with your post writing style & how continuously you describe this topic. Eagerly waiting for your new blog keep doing more.
    Primavera P6 Training online | Primavera online Training

    ReplyDelete
  21. I'm very much inspired when I've visited your blog. Your blog is really informative. Hope you will continue with new article.
    aws training in chennai
    aws course in chennai

    ReplyDelete
  22. Compre documentos en línea, documentos originales y registrados.
    Acerca de Permisodeespana, algunos dicen que somos los solucionadores de problemas, mientras que otros se refieren a nosotros como vendedores de soluciones. Contamos con cientos de clientes satisfechos a nivel mundial. Hacemos documentos falsos autorizados y aprobados como Permiso de Residencia Español, DNI, Pasaporte Español y Licencia de Conducir Española. Somos los fabricantes y proveedores de primer nivel de estos documentos, reconocidos a nivel mundial.

    Comprar permiso de residencia,
    permiso de residenciareal y falso en línea,
    Compre licencia de conducir en línea,
    Compre una licencia de conducir española falsa en línea,
    Comprar tarjeta de identificación,
    Licencia de conducir real y falsa,
    Compre pasaporte real en línea,

    Visit Here fpr more information. :- https://permisodeespana.com/licencia-de-conducir-espanola/
    Address: 56 Guild Street, London, EC4A 3WU (UK)
    Email: contact@permisodeespana.com
    WhatsApp: +443455280186

    ReplyDelete
  23. Very useful article for me, there is more information I have is very important. Thank you I'm glad you could get
    out of it to share
    lederjacke damen
    leather jacket

    ReplyDelete
  24. I share this information quite a bit so I thought it would be helpful to me as well to have
    some of the best pins in one post.
    wedding photography packages
    wedding photography

    ReplyDelete
  25. Best AWS Training provided by Vepsun in Bangalore for the last 12 years. Our Trainer has more than 20+ Years
    of IT Experience in teaching Virtualization and Cloud topics.. we are very delighted to say that Vepsun is
    the Top AWS cloud training Provider in Bangalore. We provide the best atmosphere for our students to learn.
    Our Trainers have great experience and are highly skilled in IT Professionals. AWS is an evolving cloud
    computing platform provided by Amazon with a combination of IT services. It includes a mixture of
    infrastructure as service and packaged software as service offerings and also automation. We have trained
    more than 10000 students in AWS cloud and our trainer Sameer has been awarded as the best Citrix and Cloud
    trainer in india.

    ReplyDelete
  26. Oracle HCM Online Training
    course provides students with an overview of the various components of human resource management. It also provides an overview of each Oracle Fusion HCM Online module. The Fusion HCM course will cover topics such as creating users and permissions, managing employee data, and running reports. Thankful for your teaching & Guidance.

    ReplyDelete