On Dec 8, 2011, at 6:28 AM, Amitabh Mishra wrote:
> After installation, when we run the application, we are getting the following
> error on device (android version 2.2).
The problem is that the shared runtime can't be found:
E/AndroidRuntime( 4936): java.lang.RuntimeException: Unable to get
provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find
application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!
Why is it wanting to use the shared runtime? Because your project file is
misconfigured:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'
">
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
</PropertyGroup>
The <AndroidUseSharedRuntime/> element should be False, not True.
Change this value to False (i.e. deselect the Use shared runtime checkbox for
Release builds), Clean, Build, and reinstall the .apk. That should fix your
problem.
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid