How can I run a armv7 file on a process in android studio

105 Views Asked by At

I have been trying to use stockfish in my android studio project and the only problem that I seem to face is that I can't run it.

`String filePath = context.getFilesDir() + File.pathSeparator + "StockfishEngine/stockfish_15.1_android_armv7/stockfish.android.armv7";

// String filePath = "StockfishEngine/stockfish_15.1_android_armv7/stockfish.android.armv7";

builder = new ProcessBuilder(filePath);

builder.redirectErrorStream(true); stockfishProcess = builder.start();`

My armv7 stockfish file is found in Assets folder.

No matter what I tried, it kept saying it cannot find the file and I can't just use getAssets().open(...) because then I'll get the input stream, not a process running stockfish actually. In the end, it keeps raising an error stating that it cannot find the file.

0

There are 0 best solutions below