java.lang.IllegalArgumentException: dexcache == null (and no default could be found; consider setting the ‘dexmaker.dexcache’ system property)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via paulbutcher.com by Unknown author, 1 year ago
dexcache == null (and no default could be found; consider setting thedexmaker.dexcachesystem property)
via blogspot.com by Unknown author, 1 year ago
dexcache == null (and no default could be found; consider setting the 'dexmaker.dexcache' system property)
via blogspot.com by Unknown author, 1 year ago
dexcache == null (and no default could be found; consider setting the 'dexmaker.dexcache' system property)
via GitHub by ARNdroid
, 2 years ago
dexcache == null (and no default could be found; consider setting the 'dexmaker.dexcache' system property)
via Google Groups by VRS, 4 months ago
via paulbutcher.com by Unknown author, 1 year ago
dexcache == null (and no default could be found; consider setting thedexmaker.dexcachesystem property)
java.lang.IllegalArgumentException: dexcache == null (and no default could be found; consider setting the ‘dexmaker.dexcache’ system property)
at com.google.dexmaker.DexMaker.generateAndLoad(DexMaker.java:359)
at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:26)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:51)
at org.mockito.Mockito.mock(Mockito.java:1243)
at org.mockito.Mockito.mock(Mockito.java:1120)
at undefined.testAdd.test1(testAdd.java:25)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.