I got an error message from a user that runs Android 1.5. The error reported os a java.lang.VerifyError and it seems to be based on the method setBuildInZoomControls missing. The thing is that this method should be there on an Android 1.5 device and my app's manifest specifies the minimum sdk level as "3".
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"></uses-sdk> The documentation for that method says that it is available on level 3: http://developer.android.com/reference/android/webkit/WebSettings.html#setBuiltInZoomControls(boolean) So why do I get this error message? Cheers, Mariano Short Excerpt: 01-13 12:08:13.548 I/ActivityManager( 55): Starting activity: Intent { comp={com.newsrob/com.newsrob.activities.ShowArticleActivity} (has extras) } *01-13 12:08:13.738 E/dalvikvm( 407): Could not find method android.webkit.WebSettings.setBuiltInZoomControls, referenced from method com.newsrob.activities.ShowArticleActivity.createWebView* 01-13 12:08:13.738 W/dalvikvm( 407): VFY: unable to resolve virtual method 248: Landroid/webkit/WebSettings;.setBuiltInZoomControls (Z)V 01-13 12:08:13.738 W/dalvikvm( 407): VFY: rejecting opcode 0x6e at 0x004c 01-13 12:08:13.738 W/dalvikvm( 407): VFY: rejected Lcom/newsrob/activities/ShowArticleActivity;.createWebView (Landroid/view/View;)V 01-13 12:08:13.738 W/dalvikvm( 407): Verifier rejected class Lcom/newsrob/activities/ShowArticleActivity; 01-13 12:08:13.768 W/dalvikvm( 407): Class init failed in newInstance call (Lcom/newsrob/activities/ShowArticleActivity;) 01-13 12:08:13.768 D/AndroidRuntime( 407): Shutting down VM 01-13 12:08:13.768 W/dalvikvm( 407): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 01-13 12:08:13.948 E/NewsRob ( 407): Caught the following exception: *01-13 12:08:13.948 E/NewsRob ( 407): java.lang.VerifyError: com.newsrob.activities.ShowArticleActivity* Longer Excerpt: 01-13 12:08:06.988 D/com.newsrob.AssetContentProvider( 407): onCreate() 01-13 12:08:07.498 D/com.newsrob.storage.SdCardStorageAdapter( 407): setupMedium status=mounted mounted false->true, read-only false->false, shared false -> false. 01-13 12:08:07.528 D/NewsRob ( 407): NewsRob.onCreate() 01-13 12:08:07.528 D/NewsRobDefaultExceptionHandler( 407): Default Exception handler=com.android.internal.os.runtimeinit$uncaughthand...@43680648 01-13 12:08:07.588 W/NewsRob ( 407): No debug properties loaded. 01-13 12:08:08.348 W/IInputConnectionWrapper( 101): showStatusIcon on inactive InputConnection 01-13 12:08:08.448 I/ActivityManager( 55): Displayed activity com.newsrob/.DashboardListActivity: 2653 ms 01-13 12:08:09.758 I/ActivityManager( 55): Starting activity: Intent { comp={com.newsrob/com.newsrob.activities.FeedListActivity} (has extras) } 01-13 12:08:10.488 I/ActivityManager( 55): Displayed activity com.newsrob/.activities.FeedListActivity: 729 ms 01-13 12:08:11.258 I/ActivityManager( 55): Starting activity: Intent { comp={com.newsrob/com.newsrob.activities.ArticleListActivity} (has extras) } 01-13 12:08:11.848 D/dalvikvm( 55): GC freed 15105 objects / 728320 bytes in 303ms 01-13 12:08:12.168 D/dalvikvm( 407): GC freed 3444 objects / 199360 bytes in 123ms 01-13 12:08:12.928 I/ActivityManager( 55): Displayed activity com.newsrob/.activities.ArticleListActivity: 1665 ms 01-13 12:08:13.548 I/ActivityManager( 55): Starting activity: Intent { comp={com.newsrob/com.newsrob.activities.ShowArticleActivity} (has extras) } 01-13 12:08:13.738 E/dalvikvm( 407): Could not find method android.webkit.WebSettings.setBuiltInZoomControls, referenced from method com.newsrob.activities.ShowArticleActivity.createWebView 01-13 12:08:13.738 W/dalvikvm( 407): VFY: unable to resolve virtual method 248: Landroid/webkit/WebSettings;.setBuiltInZoomControls (Z)V 01-13 12:08:13.738 W/dalvikvm( 407): VFY: rejecting opcode 0x6e at 0x004c 01-13 12:08:13.738 W/dalvikvm( 407): VFY: rejected Lcom/newsrob/activities/ShowArticleActivity;.createWebView (Landroid/view/View;)V 01-13 12:08:13.738 W/dalvikvm( 407): Verifier rejected class Lcom/newsrob/activities/ShowArticleActivity; 01-13 12:08:13.768 W/dalvikvm( 407): Class init failed in newInstance call (Lcom/newsrob/activities/ShowArticleActivity;) 01-13 12:08:13.768 D/AndroidRuntime( 407): Shutting down VM 01-13 12:08:13.768 W/dalvikvm( 407): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 01-13 12:08:13.948 E/NewsRob ( 407): Caught the following exception: 01-13 12:08:13.948 E/NewsRob ( 407): java.lang.VerifyError: com.newsrob.activities.ShowArticleActivity 01-13 12:08:13.948 E/NewsRob ( 407): at java.lang.Class.newInstanceImpl(Native Method) 01-13 12:08:13.948 E/NewsRob ( 407): at java.lang.Class.newInstance(Class.java:1472) 01-13 12:08:13.948 E/NewsRob ( 407): at android.app.Instrumentation.newActivity(Instrumentation.java:1097) 01-13 12:08:13.948 E/NewsRob ( 407): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2183) 01-13 12:08:13.948 E/NewsRob ( 407): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2281) 01-13 12:08:13.948 E/NewsRob ( 407): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 01-13 12:08:13.948 E/NewsRob ( 407): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1691) 01-13 12:08:13.948 E/NewsRob ( 407): at android.os.Handler.dispatchMessage(Handler.java:99) 01-13 12:08:13.948 E/NewsRob ( 407): at android.os.Looper.loop(Looper.java:123) 01-13 12:08:13.948 E/NewsRob ( 407): at android.app.ActivityThread.main(ActivityThread.java:3928) 01-13 12:08:13.948 E/NewsRob ( 407): at java.lang.reflect.Method.invokeNative(Native Method) 01-13 12:08:13.948 E/NewsRob ( 407): at java.lang.reflect.Method.invoke(Method.java:521) 01-13 12:08:13.948 E/NewsRob ( 407): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) 01-13 12:08:13.948 E/NewsRob ( 407): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 01-13 12:08:13.948 E/NewsRob ( 407): at dalvik.system.NativeStart.main(Native Method) 01-13 12:08:14.638 I/ActivityManager( 55): Process com.android.mms (pid 124) has died. 01-13 12:08:16.858 I/Resources( 407): Loaded time zone names for en_US in 2588ms. 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): Message Body: Sorry! 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): NewsRob hit a wall. Please send this mail, so that the developer can analyze/fix the issue. 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): If it is not too much to ask, please add to this mail what you just did: 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Time: Wed Jan 13 12:08:14 GMT+01:00 2010 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Android Version: sdk=3, release=1.5, inc=138607 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Memory free: 0,50MB total: 2,94MB max: 16,00MB 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Custom ROM: Stock Android 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Device: sapphire 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Model: HTC Magic 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- NewsRob Version: 3.5.2/352 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Days installed:0 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): -- Stacktrace:(1006) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): java.lang.VerifyError: com.newsrob.activities.ShowArticleActivity 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at java.lang.Class.newInstanceImpl(Native Method) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at java.lang.Class.newInstance(Class.java:1472) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.app.Instrumentation.newActivity(Instrumentation.java:1097) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2183) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2281) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1691) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.os.Handler.dispatchMessage(Handler.java:99) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.os.Looper.loop(Looper.java:123) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at android.app.ActivityThread.main(ActivityThread.java:3928) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at java.lang.reflect.Method.invokeNative(Native Method) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at java.lang.reflect.Method.invoke(Method.java:521) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 01-13 12:08:17.068 D/NewsRobDefaultExceptionHandler( 407): at dalvik.system.NativeStart.main(Native Method) 01-13 12:08:17.068 E/NewsRobDefaultExceptionHandler( 407): Exception handled. Email activity should be initiated now. 01-13 12:08:17.078 E/NewsRobDefaultExceptionHandler( 407): Exception handled. Email should be sent by now. 01-13 12:08:17.088 E/AndroidRuntime( 407): Uncaught handler: thread main exiting due to uncaught exception 01-13 12:08:17.088 I/ActivityManager( 55): Starting activity: Intent { action=android.intent.action.SEND type=message/rfc822 flags=0x10000000 comp={com.google.android.gm/com.google.android.gm.ComposeActivityGmail} (has extras) } 01-13 12:08:17.108 E/AndroidRuntime( 407): java.lang.VerifyError: com.newsrob.activities.ShowArticleActivity 01-13 12:08:17.108 E/AndroidRuntime( 407): at java.lang.Class.newInstanceImpl(Native Method) 01-13 12:08:17.108 E/AndroidRuntime( 407): at java.lang.Class.newInstance(Class.java:1472) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.app.Instrumentation.newActivity(Instrumentation.java:1097) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2183) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2281) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1691) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.os.Handler.dispatchMessage(Handler.java:99) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.os.Looper.loop(Looper.java:123) 01-13 12:08:17.108 E/AndroidRuntime( 407): at android.app.ActivityThread.main(ActivityThread.java:3928) 01-13 12:08:17.108 E/AndroidRuntime( 407): at java.lang.reflect.Method.invokeNative(Native Method) 01-13 12:08:17.108 E/AndroidRuntime( 407): at java.lang.reflect.Method.invoke(Method.java:521) 01-13 12:08:17.108 E/AndroidRuntime( 407): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) 01-13 12:08:17.108 E/AndroidRuntime( 407): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 01-13 12:08:17.108 E/AndroidRuntime( 407): at dalvik.system.NativeStart.main(Native Method)
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en