Questions tagged [android-runtime]

The Android Runtime, or ART for short, is an Android runtime which was made available in Android 4.4 and is the default runtime in Android from 5.0 onward, superseding the Dalvik runtime. ART compiles app's bytecode to native code using the dex2oat on-device compiler suite and executes them.

175 questions
8
votes
1 answer

Do emulators or Genymotion support ART, the dalvik replacement?

ART is the next generation of Dalvik. Is there anyway to emulate it with Android emulators or with Genymotion ?
Snicolas
  • 37,840
  • 15
  • 114
  • 173
7
votes
2 answers

Android: Rare and Non-Reproducible ClassNotFoundException

I have a published app that gets reports about a ClassNotFoundExceptionfrom users that I went beyond my wits end trying to fix. I have not been able to reproduce this crash and similar instances of this error here on SO have either been cases of…
daedsidog
  • 1,732
  • 2
  • 17
  • 36
7
votes
2 answers

How can I enable language-level assertions on the Android Runtime (ART)?

I have a Pixel-C that I am developing for. My minimum API level is 21, which is also the level at which ART replaced Dalvik. I have tried both of: adb shell setprop dalvik.vm.enableassertions all adb shell setprop debug.assert 1 And they seem to…
Travis Well
  • 947
  • 10
  • 32
7
votes
0 answers

MediaCodec weak global reference table overflow

I'm working on an app that instantiates several MediaCodec instances for decoding streaming audio and video data to a SurfaceTexture on an Nvidia TX1 development kit. After a few minutes of just using one audio and one video decoder, I get an error…
jldeon
  • 363
  • 2
  • 11
6
votes
1 answer

Native Crash: JNI DETECTED ERROR IN APPLICATION: [thread] using JNIEnv* from [thread]

The following is the stacktrace. The source code where the crash originates is here. I traced the stacktrace until android's source code which is here. I'm unable to understand what this means and why it happens only sometimes. Any help would be…
rampr
  • 1,877
  • 4
  • 21
  • 36
6
votes
1 answer

Android - Verification failed on class ART / Dalvik

I'm getting a weird error using the Aviary SDK for some users who are using ART. I'm confused on why this happening (only on 4.4.x obviously) as the app works perfectly when calling this SDK on Dalvik. Any one have any have any ideas to solve this?…
gregavola
  • 2,519
  • 5
  • 30
  • 47
6
votes
4 answers

Is Android Installer (.apk file) supported in Tizen Os?

Is .apk file based installation supported on Tizen Os ?
Faison N.P
  • 161
  • 1
  • 2
  • 9
5
votes
1 answer

Which kind of code in the process of android platfrom, Dalvik byte-codes or native machine code?

I'm not quite sure which kind of code is loaded into the linux process on android platform. If android adopts Dalvik, the process contains a Dalvik VM and the code of the application, is the code in the form of Dalvik byte-codes? If yes, is the…
shijun zhao
  • 383
  • 3
  • 13
5
votes
2 answers

Cost of invoking a method on Android

I created a method that's only called in one place - from onBindViewHolder() in a RecyclerView. It was a logical unit of code, and I think that extracting that code block into a method improved readability. However, during a code review, I was…
starkej2
  • 11,391
  • 6
  • 35
  • 41
5
votes
0 answers

Getting ART error while attaching native thread to VM

I have Java & Native components in my android project. Native is required as it is legacy code and my organization don't want to waste resources in re-writing whole code again. In the native code I need to post some event to the java layer, so I am…
Suman
  • 4,221
  • 7
  • 44
  • 64
5
votes
0 answers

Android DatePicker compatibility issue with MonkeyTalk library

I have implemented an Android app, and just added MonkeyTalk library to test the usability of the system by recording user interaction with the app. After using this library, everything works, but DatePicker! I use the following method to show…
Masood
  • 685
  • 2
  • 8
  • 16
5
votes
0 answers

java.lang.IncompatibleClassChangeError crash with android 4.4.2 emulator and ART runtime

I am getting a mysterious crash with the 4.4.2 emulator running in ART mode. The app works fine with android 5, and 4.4.2/Dalvik. Any help will be appreciated. 04-17 08:25:24.126 16404-16404/com.my.package.name E/AndroidRuntime﹕ FATAL EXCEPTION:…
Blago
  • 4,697
  • 2
  • 34
  • 29
5
votes
1 answer

Android Runtime(ART) is virtual machine?

I wonder if ART is virtual machine. The dex2oat compiles dalvik byte code into the native (specific for platform) code, elf file. So as mentioned in android developer article it still has garbage collector. I don't understand how does it work, we…
user4408652
5
votes
0 answers

DexOpt: Illegal method access

I have a location based app which worked fine till yesterday but when I run it on my phone now it acts weird. Below is my logcat which shows up errors that I've never seen or heard before 07-07 14:17:25.548: D/ActivityThread(24383):…
Vinay Potluri
  • 545
  • 1
  • 9
  • 23
4
votes
1 answer

Crashes in art::JNI::NewStringUTF()

In my Google Play developer console, I see a lot of crashes in NewStringUTF() like so: #00 pc 00000000001b9f22 /system/lib/libart.so (art::IndirectReferenceTable::Add(art::IRTSegmentState, art::ObjPtr,…
Bram
  • 7,440
  • 3
  • 52
  • 94
1
2
3
11 12