The VerifyError occurs when you are using (or only 'importing') stuff that is only in the newer API. In this case I think you should use reflection to use the new APIs methods/classes in Android > 1.6.
On Sat, Jun 26, 2010 at 9:13 PM, Peter Eastman <[email protected]>wrote: > I'm stuck on a problem that I'm sure has a very simple answer, but I > haven't been able to figure it out. > > I have a program that should work on Android 1.5, but when it's run on > newer devices with higher resolution screens, it should support the > full resolution and not emulate a lower resolution screen. As far as > I can tell from the documentation, this should be simple. I just > specify > > <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/> > > The problem is that if I tell Eclipse to compile for 1.5, it refuses > to accept this. It reports an error (targetSdkVersion is an unknown > tag) and refuses to compile or run. If I tell it to compile for 1.6 > it works fine, of course. But if I then try to install on a 1.5 AVD, > the program immediately crashes with a java.lang.VerifyError. I'm > clearly missing something simple. How do I get it to compile an apk > that works under 1.5, but still includes the targetSdkVersion tag? > > Peter > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

