[EMAIL PROTECTED] wrote: > I need to use reflection and annotations in run-time. I am beginner > with android and i can not run an aplication. Maybe the source is > wrong but I thinks that it is right. When a run the emulator says me > that occur a java.lang.ExceptionInInitializerError exception. > My question is the next, how i can resolve this problem?. > My process of run the application is: > 1.- Compile code. > 2.- Run retrotranslator. > 3.- Run android application from eclipse.
Are you following the instructions on using retrotranslator with Android? http://retrotranslator.sourceforge.net/#android In particular, the part about "If you're using the ADT plugin in the Eclipse IDE you cannot run Retrotranslator on your code, but the dependencies of your application may be translated manually before adding them to the Eclipse project" would seem relevant. Assuming that's all OK, the exception would appear to be raised during some class' constructor. Between that and your stack trace, it should be possible for you to narrow down what line in your code is throwing the Exception. If you can't do that for some reason, get rid of the annotations and reflection and get your logic working when called directly. Once that's fine, start *slowly* introducing annotations and reflections until you either get what you want or you run into your ExceptionInInitializerError again, at which point you know it is from the last thing you added. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch in September! http://www.bignerdranch.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

