-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not init mockmaker InlineStaticMockMaker neither InlineDexmakerMockMaker #164
Comments
Hi @GianpaMX thanks much for reporting and for the sample project! I'm still digging into this bug - I've found the source of the problem, and am working on a proper fix. The cause is the change to native library compression introduced in AGP 3.6 (https://developer.android.com/studio/releases/gradle-plugin#extractNativeLibs). This is resulting in the app not being able to find the native library it needs to connect to the JVMTI. A workaround for now is to opt-out of that feature for your test APK using the I'll keep this thread updated as we investigate a fix on the dexmaker side to make that unnecessary, but wanted to share it for now. |
I wasn't able to find a solution for this, so I've opened https://issuetracker.google.com/u/1/issues/160108941 with the AGP team for this, hopefully they can provide some better guidance on a long term answer here. |
Hi, Since I'm working on AOSP, I started with including below library - Android version of dexmaker - to static :
First time my app was able to extract .so files but could not attach libraries. (returned -3, which means JNI_EVERSION) |
Workaround above doesn't work anymore. The error is: android:debuggable="true" |
07-06 14:23:25.456 3535 3555 D InfraTrack: Tracking disabled due to lack of internet permissions In my case target has no libstaticjvmtiagent.so on it's disks. How do I properly install it? |
this conflict can be solved by using "use_embedded_native_libs: true" |
Hi, do we have any solution to this? I am trying to run unit tests with mockito but failing in 14 but all is fine in the lower version. |
Hello,
I'm having an issue when mocking a class in an App module.
Causing this error:
adb logcat
The weird thing is, it works in a Library module.
I created the following project with an app module and a library module to reproduce the issue:
https://github.com/GianpaMX/MockMakerIssue
I'm running theses tests in an Android 10 device (HUAWEI ELE-L04)
This is very similar to #119 and #127
Thank you,
The text was updated successfully, but these errors were encountered: