mockk-agent-android 1.12.4 missing native lib
See original GitHub issueExpected Behavior
libmockkjvmtiagent.so
lib embedded in aar like before
Current Behavior
No lib -> This error occured due to an I/O error during the creation of this agent: java.io.IOException: Unable to dlopen libmockkjvmtiagent.so: dlopen failed: library "libmockkjvmtiagent.so" not found
Failure Information (for bugs)
Steps to Reproduce
- Import 1.12.4
- Try to use Mockk
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
- MockK version: 1.12.4
- Type of test: android instrumented test
Stack trace
Caused by: io.mockk.proxy.MockKAgentException: MockK could not self-attach a jvmti agent to the current VM. This feature is required for inline mocking.
This error occured due to an I/O error during the creation of this agent: java.io.IOException: Unable to dlopen libmockkjvmtiagent.so: dlopen failed: library "libmockkjvmtiagent.so" not found
Potentially, the current VM does not support the jvmti API correctly
at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:67)
at io.mockk.impl.JvmMockKGateway.<init>(JvmMockKGateway.kt:46)
at io.mockk.impl.JvmMockKGateway.<clinit>(JvmMockKGateway.kt:186)
... 33 more
Caused by: java.io.IOException: Unable to dlopen libmockkjvmtiagent.so: dlopen failed: library "libmockkjvmtiagent.so" not found
at dalvik.system.VMDebug.nativeAttachAgent(Native Method)
at dalvik.system.VMDebug.attachAgent(VMDebug.java:572)
at android.os.Debug.attachJvmtiAgent(Debug.java:2563)
at io.mockk.proxy.android.JvmtiAgent.<init>(JvmtiAgent.kt:48)
at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:40)
... 35 more
Minimal reproducible code (the gist of this issue)
mockk()
Issue Analytics
- State:
- Created a year ago
- Reactions:32
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Missing and Murdered Indigenous People Crisis | Indian Affairs
For decades, Native American and Alaska Native communities have struggled with high rates of assault, abduction, and murder of women.
Read more >Missing and Murdered Indigenous Peoples
The unit is providing leadership and direction for cross-departmental and interagency work involving missing and murdered American Indians and Alaska Natives.
Read more >Red dresses bring awareness to missing Indigenous women
Each red dress was put here to represent an Indigenous woman who was murdered or missing. They're hanging in or near 25 libraries...
Read more >Native American Children Reported Missing to NCMEC
This report presents data on cases of missing or abducted Native American children reported to the National Center for Missing and Exploited Children ......
Read more >Fargo library art exhibit tells story of missing indigenous women
"Bring Her Home: Stolen Daughters of Turtle Island" opened earlier this year at All My Relations Gallery in Minneapolis, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Back to normal with the latest release: https://github.com/mockk/mockk/releases/tag/1.12.5
I think this warrants either withdrawing the 1.12.4 release or putting warnings on the website, the readme, etc. It isn’t mentioned in the “Known Issues” section that this release is partially broken.