easy-random: Doesn't work on Android
Hello,
I was interested to try this library in my Android project.
What I found is that it works with no problems when I use it in my unit tests that runs on the JVM directly. But it crashes with a weird error when tried it in my instrumentation tests on a real device.
Here is what I tried
final Populator populator = PopulatorBuilder.aNewPopulatorBuilder().build();
List<MyModel> catalogArticleList = populator.populateBeans(MyModel.class, 20);
And the weird error is
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x2 in tid 4098 (roidJUnitRunner)
I suspect it is related to Android VM, and the way it execute the byte code that is generated from this library.
I know that this library was written primarily to be used in Backends. But it would be really great to port it to Android.
Cheers
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 24 (11 by maintainers)
The following is a good news to continue the work on this issue:
https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html
Looking forward to it!