Not able to access native files in a external library – android

  android, c++, dependencies, native

So I have 5 libraries:
Lib 1,2,3,4,5

Lib 1

|
__ Lib 2,3,4,5

|
__ C++ library/Project (Source code present in the project)

As shown above Lib 1 depends on Lib 2,3,4,5 and is also linked with a C++ library whose source is present in the project.

So this is how my Lib 1 looks like:
It contains the cpp folder which includes the "MakeLists.txt" and other native source files needed.

enter image description here

I published all the libraries 1,2,3,4,5 on amazon s3.

So I am trying to call Lib 1 as dependency in a demo app, which in turn calls all the other lib i.e 2,3,4,5.
But as Lib 1 is also linked to C++ library, I am expecting to access the native files in my demo app too. But that is not case, the files are no where to be found.

This is how my external library looks like when pulled into demo app:
There is no cpp file present here.
enter image description here

So am I missing something here? do I need to publish the C++ library too? how do I do that?

—or–

When using the Lib 1 as dependency in my demo app, do I need to add something which makes the library download the c++ native files linked to lib 1 too.

More info for reference:

I published library to AWS S3 using the following code in the gradle:

publications {
    release(MavenPublication) {
        groupId = 'com.x.y'
        artifactId = 'lib1'
        version = '1.0.0'
    }
  
    debug(MavenPublication) {
        groupId = 'com.x.y'
        artifactId = 'lib1'
        version = '1.0.0'
    }
}

/

Source: Windows Questions C++

LEAVE A COMMENT