Questions tagged [dexmaker]

Programmatic code generation for Android.

dexmaker is a Java-language API for doing compile time or runtime code generation targeting the Dalvik VM. Unlike cglib or ASM, this library creates Dalvik .dex files instead of Java .class files.

19 questions
1
vote
1 answer

Mockito with dexmaker on Android - getting a Virtual machine error mocking an activity

Trying to do a partial mock of an activity using Mockito.spy after its instrumented on the Android VM (Emulator 4.1). Here is the error I get java.lang.VirtualMachineError at dalvik.system.DexFile.defineClass(Native Method) at…
Rickster
  • 1,393
  • 3
  • 13
  • 19
0
votes
0 answers

How to create dynamic method in android with the received method string from server

I want to create a dynamic class or method. The server sends the complete class as the response. I want to use the response to create a dynamic class.
0
votes
1 answer

Why can't gradle find com.google.dexmaker?

Currently work on a fork of https://github.com/lucasr/probe. Just getting into the start, but for some reason, when I try to build it I get this error quite a few times: /Users/me/probe/library/src/main/java/org/lucasr/probe/DexProxyBuilder.java:27:…
iHowell
  • 2,263
  • 1
  • 25
  • 49
0
votes
0 answers

Mockito and DexLibs with Android on "real device" fails with ExceptionInitializer

just wanted to clarify my understanding of the error I get is correct please... java.lang.ExceptionInInitializerError at org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass(ClassImposterizer.java:85) at…
MikeB
  • 577
  • 5
  • 15
1
2