I import unity3d project as aar library into android project.
Initially, to speed up the work, I started an empty android and debugged communication with the unit in it, everything worked, when it came time to connect unity aar with my main project I got an error when launching the unit:
No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator ()
Then I copied all dependencies from the main project to an empty one and got the same error, then I figured out that the error occurs when the Fresco library is turned on, while it is not even used anywhere in the code.
Here is the final Gradle dependencies of an empty project.
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.facebook.fresco:fresco:1.11.0'// так не работает, если удалить, то работает. implementation project(':UnityAar') implementation 'com.android.support:design:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation 'com.android.support:support-v4:28.0.0' implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.google.code.gson:gson:2.8.5' } How can this even be? And what to do?
PS just can not remove Fresco, it works on the main project.