Bug 1934 - Error "Failure [INSTALL_FAILED_OLDER_SDK]" occurs in deploying Snake application on Emulator at API 7 in Debug Mode.
Summary: Error "Failure [INSTALL_FAILED_OLDER_SDK]" occurs in deploying Snake applicat...
Status: CLOSED DUPLICATE of bug 1929
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 1.9.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-08 08:41 UTC by narayanp
Modified: 2011-12-22 09:40 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
CLOSED DUPLICATE of bug 1929

Description narayanp 2011-11-08 08:41:40 UTC
Step to Reproduce:
1. Launch MonoDevelop.
2. Click on "Open the existing Solution" link.
3. Browse the "Snake" application.
4. Build the application and select "Debug" option under Active Configuration.
5. Click on Run from the top menu bar and select API 7 from select device window.

Actual Result:
In Release mode "Failure [INSTALL_FAILED_OLDER_SDK]" message display in Deploy to Device.

Error Details in Application output:
D/AndroidRuntime(  221): Shutting down VM

E/AndroidRuntime(  221): Uncaught handler: thread main exiting due to uncaught exception

E/AndroidRuntime(  221): 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!

E/AndroidRuntime(  221): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4270)

E/AndroidRuntime(  221): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4042)

E/AndroidRuntime(  221): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4001)

E/AndroidRuntime(  221): 	at android.app.ActivityThread.access$2900(ActivityThread.java:119)

E/AndroidRuntime(  221): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1901)

E/AndroidRuntime(  221): 	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(  221): 	at android.os.Looper.loop(Looper.java:123)

E/AndroidRuntime(  221): 	at android.app.ActivityThread.main(ActivityThread.java:4363)

E/AndroidRuntime(  221): 	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  221): 	at java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime(  221): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)

E/AndroidRuntime(  221): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

E/AndroidRuntime(  221): 	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(  221): Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!

E/AndroidRuntime(  221): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)

E/AndroidRuntime(  221): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4267)

E/AndroidRuntime(  221): 	... 12 more

E/AndroidRuntime(  221): Caused by: android.content.pm.PackageManager$NameNotFoundException: Mono.Android.Platform.ApiLevel_8

E/AndroidRuntime(  221): 	at android.app.ApplicationContext$ApplicationPackageManager.getApplicationInfo(ApplicationContext.java:1604)

E/AndroidRuntime(  221): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)

E/AndroidRuntime(  221): 	... 13 more

Expected Result:
Error should not occur in running the application and application should deploy on the emulator successfully.

Environment:
MonoForAndroid 1.9.2
MonoDevelop 2.8.2
Comment 1 Jonathan Pryor 2011-11-09 16:28:04 UTC

*** This bug has been marked as a duplicate of bug 1929 ***
Comment 2 narayanp 2011-11-10 03:05:19 UTC
Error "Failure[INSTALLED_FAILED_OLDER_SDK]" error occurs when we run the app in Debug mode and D/AndroidRuntime(  295): Shutting down VM
E/AndroidRuntime(  295): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(  295): 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!
E/AndroidRuntime(  295): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4270)
E/AndroidRuntime(  295): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4042)
E/AndroidRuntime(  295): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4001)
E/AndroidRuntime(  295): 	at android.app.ActivityThread.access$2900(ActivityThread.java:119)
E/AndroidRuntime(  295): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1901)
E/AndroidRuntime(  295): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  295): 	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  295): 	at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(  295): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  295): 	at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  295): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(  295): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(  295): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  295): Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!
E/AndroidRuntime(  295): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)
E/AndroidRuntime(  295): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4267)
E/AndroidRuntime(  295): 	... 12 more
E/AndroidRuntime(  295): Caused by: android.content.pm.PackageManager$NameNotFoundException: Mono.Android.Platform.ApiLevel_8
E/AndroidRuntime(  295): 	at android.app.ApplicationContext$ApplicationPackageManager.getApplicationInfo(ApplicationContext.java:1604)
E/AndroidRuntime(  295): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)
E/AndroidRuntime(  295): 	... 13 more
I/Process (  295): Sending signal. PID: 295 SIG: 9
error occurs when we run the application in Release mode.
Comment 3 narayanp 2011-11-10 11:44:18 UTC
On MAC system:

API 14:
Fail: Failure [INSTALL_FAILED_OLDER_SDK] (Debug Mode)

API7:
Fail: Failure [INSTALL_FAILED_OLDER_SDK] (Debug Mode)
Comment 4 Atin 2011-11-14 06:57:47 UTC
We RUN this application on MAC 10.7 in API 4,10,14 and got below errors:
Environments:
M4A 1.9.3
MD 3.0 Beta-1(2.9)
MAC 10.7

D/AndroidRuntime(  249): Shutting down VM
E/AndroidRuntime(  249): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(  249): 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!
E/AndroidRuntime(  249): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4112)
E/AndroidRuntime(  249): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:3908)
E/AndroidRuntime(  249): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3867)
E/AndroidRuntime(  249): 	at android.app.ActivityThread.access$2800(ActivityThread.java:116)
E/AndroidRuntime(  249): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
E/AndroidRuntime(  249): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  249): 	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  249): 	at android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime(  249): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  249): 	at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  249): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(  249): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime(  249): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  249): Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!
E/AndroidRuntime(  249): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)
E/AndroidRuntime(  249): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4109)
E/AndroidRuntime(  249): 	... 12 more
E/AndroidRuntime(  249): Caused by: android.content.pm.PackageManager$NameNotFoundException: Mono.Android.Platform.ApiLevel_8
E/AndroidRuntime(  249): 	at android.app.ApplicationContext$ApplicationPackageManager.getApplicationInfo(ApplicationContext.java:1655)
E/AndroidRuntime(  249): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)
E/AndroidRuntime(  249): 	... 13 more
I/Process (  249): Sending signal. PID: 249 SIG: 9
Comment 5 narayanp 2011-11-14 08:28:53 UTC
Environment:

Windows7
MonoDevelop 3.0 Beta1
MonoForAndroid 1.9.3

API 10/API 14/API 7: Internal error. Could not find file 'C:\Users\win7\Desktop\xamarin-monodroid-samples-d071bf8\xamarin-monodroid-samples-d071bf8\Snake\bin\Release\snake.snake-Signed.apk'.(release/Debug)
Comment 6 narayanp 2011-12-22 09:40:14 UTC
Now this issue is fixed. New issue occurs when we run the app on API7.

Bug 2209 - Many samples layouts are not compatible with API Level 7

Hence closing this issue.