I wrote a System Service, but it fails on boot with the message:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libgojni.so" not found
Basically in the code of the .aar library it tries to load a library using System.loadLibrary() but it fails, even though it is in the aar file. It even works when I try to do it in an android app, but it fails on android.
It may be also worth mentioning that I created the .aar library using gomobile to bind a go-project into an .aar library.