Comments (9)
Still present on Gradle 5.1.
from dexmaker.
I'm not clear how this could be an issue with Gradle 5. We're using Gradle 5.0 + dexmaker-mockito and not seeing any issues. Any other information you can provide?
from dexmaker.
That's weird. You can find source code here and see my example build. It errs on ProxyBuilder
not found. And going back to 4.10.2 fixes this. I have no idea why that is.
from dexmaker.
Still present on 5.1.1.
from dexmaker.
You can checkout the source code here and see what's wrong: https://github.com/Mygod/VPNHotspot
from dexmaker.
@Mygod , I downloaded your code and saw the issue, but I believe it's more related to how your project is setup, I'd suggest you check out this gradle doc and see whether anything can give you a clue: https://docs.gradle.org/5.0/userguide/upgrading_version_4.html#changes_5.0
from dexmaker.
@Mygod , adding below line to your build.gradle in "mobile" module should solve your problem:
implementation 'com.linkedin.dexmaker:dexmaker:2.19.1'
from dexmaker.
I think that's probably the right solution. I don't think dexmaker-mockito intends to expose dexmaker as part of its public API. Adding the dependency explicitly seems like a good option here.
from dexmaker.
Replacing dexmaker-mockito
with dexmaker
fixes this. Nice! Thanks.
from dexmaker.
Related Issues (20)
- Breakpoints crash/hang debugger HOT 5
- Allow mocking of native methods HOT 1
- How to generate a class with generics type? HOT 4
- Could not init mockmaker InlineStaticMockMaker neither InlineDexmakerMockMaker HOT 8
- Does not introduce transitive dependency of mockito per README HOT 2
- mockStatic PendingIntent got NPE HOT 1
- Mock fail when use dexmaker-mockito-inline instead of dexmaker-mockito HOT 1
- Migrate away from JCenter HOT 6
- dexmaker crash HOT 2
- dexmaker gson crash HOT 1
- dexmaker under AOSP HOT 2
- Why Code#compare parameter order is reversed after generated dex? HOT 2
- Failed to load interface org.mockito.plugins.MockMaker implementation declared in sun.misc.CompoundEnumeratio HOT 5
- [Help] How get self method and Object HOT 12
- Random FileNotFoundException when mocking Android class HOT 5
- Gain
- java.lang.SecurityException: Writable dex file error when executing on Android 14 HOT 1
- UI test cases failing on API 34 HOT 5
- Whether the JDK version mapping description can be provided? HOT 1
- [URGENT] Library is not downloadable from maven HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dexmaker.