I am making a chess app. I have a .so plugin for stockfish as instructed by many guides online in the correct directory:
and access it like so:
// ...
#elif UNITY_ANDROID
string filepath = "/data/data/com.me.myapp/lib/stockfish.android.armv7.so";
// ...
mProcess = new Process();
ProcessStartInfo si = new ProcessStartInfo()
{
FileName = filepath,
UseShellExecute = false,
CreateNoWindow = true,
RedirectStandardError = true,
RedirectStandardInput = true,
RedirectStandardOutput = true
};
When I build and run my app as a development build everything works fine. But when I build and run it otherwise I get this error when I call Start()
on the process:
Win32 Exception: ApplicationName: "/data/data/com.me.myapp/lib/stockfish.android.armv7.so", CommandLine = ", CurrentDirectory=", Native error= Cannot find the specified file.
(I can’t copy and paste the full error log, since it works on a development build )
This has only started happening recently, it was working fine before, so I am really confused especially with a development build being a fix somehow giving me limited ways to debug this effectively.
Any help will be hugely appreciated.