make sure to include in the build.gradle(Module :app) implementation fileTree(dir: project(':unityLibrary').getProjectDir().toString() + ('\\libs'), include: ['*.jar']
for me on Ubuntu implementation fileTree(dir: project(':unityLibrary').getProjectDir().toString() + ('/libs'), include: ['*.jar']
and change “\” to “/” in project(':unityLibrary').projectDir=[new](http://www.google.com/search?q=new+msdn.microsoft.com) File('..\\UnityProject\\androidBuild\\unityLibrary')
this worked.