What is the android platform version of your emulator? If it is API
Level 11 or earlier, it will result in the error like your case.
Atsushi Eno
> I finally have installed m4a and gotten around to working with. I
> have downloaded the samples from github. I have found the following
> issues:
>
> * The github samples don't compile on my mac running lion. The
> issue seems to be that there is a call to
> SetContentView(Resource.Layout.main) in MainActivity.cs. This
> needs to be Resource.Layout.Main. I have also noted that the
> honeycomb samples don't use the .axml file extension, but use
> .xml. Not a biggie, just thought I would mention it since I
> like intellisense. :-)
> * When I attempt to install the compiled app into an emulator
> session, I get the message below in mono develop. I have a
> fairly small emulator session setup (400x800). sorry, but i
> left my tablet at the office, so I can't test it on a device
> right now.
> * So far, my sample code that ran in 1.x runs now.
>
>
> Error Message from Monodevelop in the Application output window:
>
> Setting debug property
> Forwarding debugger port
> Forwarding console port
> Starting: Intent { act=android.intent.action.MAIN
> cmp=com.example.monodroid.hcgallery/.MainActivity }
> D/AndroidRuntime( 432): Shutting down VM
> E/AndroidRuntime( 432): FATAL EXCEPTION: main
> E/AndroidRuntime( 432): java.lang.RuntimeException: Unable to get
> provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable
> to find application Mono.Android.DebugRuntime or
> Mono.Android.Platform.ApiLevel_12!
> E/AndroidRuntime( 432): at
> android.app.ActivityThread.installProvider(ActivityThread.java:3981)
> E/AndroidRuntime( 432): at
> android.app.ActivityThread.installContentProviders(ActivityThread.java:3733)
> E/AndroidRuntime( 432): at
> android.app.ActivityThread.handleBindApplication(ActivityThread.java:3689)
> E/AndroidRuntime( 432): at
> android.app.ActivityThread.access$1200(ActivityThread.java:122)
> E/AndroidRuntime( 432): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1062)
> E/AndroidRuntime( 432): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/AndroidRuntime( 432): at android.os.Looper.loop(Looper.java:132)
> E/AndroidRuntime( 432): at
> android.app.ActivityThread.main(ActivityThread.java:4123)
> E/AndroidRuntime( 432): at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/AndroidRuntime( 432): at
> java.lang.reflect.Method.invoke(Method.java:491)
> E/AndroidRuntime( 432): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
> E/AndroidRuntime( 432): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
> E/AndroidRuntime( 432): at dalvik.system.NativeStart.main(Native Method)
> E/AndroidRuntime( 432): Caused by: java.lang.RuntimeException: Unable
> to find application Mono.Android.DebugRuntime or
> Mono.Android.Platform.ApiLevel_12!
> E/AndroidRuntime( 432): at
> mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)
> E/AndroidRuntime( 432): at
> android.app.ActivityThread.installProvider(ActivityThread.java:3978)
> E/AndroidRuntime( 432): ... 12 more
> E/AndroidRuntime( 432): Caused by:
> android.content.pm.PackageManager$NameNotFoundException:
> Mono.Android.Platform.ApiLevel_12
> E/AndroidRuntime( 432): at
> android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:207)
> E/AndroidRuntime( 432): at
> mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)
> E/AndroidRuntime( 432): ... 13 more
> I/Process ( 432): Sending signal. PID: 432 SIG: 9
>
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid