I have created Android lib that uses ArCore (native) (https://developers.google.com/ar/develop/c/enable-arcore), one of the requirements is to add in your gradle file a few lines
This one configurations { natives }
at the top of your gradle file and these
implementation 'com.google.ar:core:1.13.0'
natives 'com.google.ar:core:1.13.0'
at the dependencies block
I have added them in my Android lib. Then I build .aar
file and added it to sample project to check if it is works as expected, and I got an error in this line
CHECK(ArCoreApk_requestInstall(env, activity, user_requested_install, &install_status) == AR_SUCCESS);
In order to solve it I had to edit gradle file(add dependency above) of sample project and then it work.
Question is - why I need to add twice the same dependency under my lib gradle and my project gradle...
I thought that after I have add all required dependency in my lib I should not duplicate them also in project...