tablesaw icon indicating copy to clipboard operation
tablesaw copied to clipboard

Tablesaw on Android

Open PeteSahad opened this issue 2 years ago • 4 comments

Is there a way to run Tablesaw on Android?

My app keeps crashing on Table.create(). The problem seems to be that somewhere it uses "java/lang/management/ManagementFactory".

At least this is the error I get...: E/AndroidRuntime(15389): java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;

PeteSahad avatar Aug 11 '22 19:08 PeteSahad

I'm facing the same issue with version tablesaw-core:0.43.1 on Android, I tried to add the tablesaw-core dependency either via Maven repository or directly using a JAR file, but none of these worked for me. Looking forward to get a fix for this problem.

younesidsouguou avatar Oct 07 '22 16:10 younesidsouguou

I don't have any experience with Android, but it seems like the Java version on Android is missing java/lang/management/ManagementFactory. Also, IDK where that class is used; I don't think it's called directly by Tablesaw

On Fri, Oct 7, 2022 at 12:30 PM Younes IDSOUGUOU @.***> wrote:

I'm facing the same issue with version tablesaw-core:0.43.1 on Android, I tried to add the tablesaw-core dependency either via Maven repository or directly using a JAR file, but none of these worked for me. Looking forward to get a fix for this problem.

— Reply to this email directly, view it on GitHub https://github.com/jtablesaw/tablesaw/issues/1136#issuecomment-1271805072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2FPAVN57PEANAVWDK5SOLWCBF3JANCNFSM56JL7QDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lwhite1 avatar Oct 11 '22 07:10 lwhite1

Also, IDK where that class is used; I don't think it's called directly by Tablesaw

It's only used in the test code? https://github.com/jtablesaw/tablesaw/blob/627be4b660e6ff12eec3c06b7a2c9e353698f911/core/src/test/java/tech/tablesaw/testutil/NanoBench.java#L487

@PeteSahad can you provide a full stack trace?

axkr avatar Oct 11 '22 09:10 axkr

I removed tablesaw from my project because of the problem. Maybe I have an old commit to repoduce.

Also I didn't put too much effort in analyzing the problem because I could circumvent the issue by writing my own code.

But maybe if you compile tablesaw yourself without testutils it might work. I used gradle in my project and it just compiles the entire thing and might therefore run into this error.

I just remeber that my app crashed at Table.create() in the code. Whatever might have happend in the background... But I'm not 100% sure. As I mentioned above, I removed tablesaw from my project and didn't take a deeper look into it.

PeteSahad avatar Oct 11 '22 10:10 PeteSahad