import dalvik.system.VMRuntime cannot find

5.2k Views Asked by At

I am trying to import VMRuntime but i does not seem got

There were only got 3 packages which were dexclassloader, dexfile and pathclassloader.

import dalvik.system.VMRuntime <-- does not exist.

How to enable it?

2

There are 2 best solutions below

0
On

It appears that class VMRuntime was removed in API 9:

http://developer.android.com/sdk/api_diff/9/changes/pkg_dalvik.system.html

1
On

There is no VMRuntime class in the Android SDK, let alone in the dalvik.system package. Hence, Eclipse is telling you that it does not exist in the Android SDK because it does not exist in the Android SDK.