You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone [email protected]:android/ndk-samples.git
Cloning into 'ndk-samples'...
remote: Enumerating objects: 15876, done.
remote: Counting objects: 100% (265/265), done.
remote: Compressing objects: 100% (141/141), done.
remote: Total 15876 (delta 90), reused 230 (delta 84), pack-reused 15611
Receiving objects: 100% (15876/15876), 51.87 MiB | 4.70 MiB/s, done.
Resolving deltas: 100% (8322/8322), done.
$ cd ndk-samples/hello-libs
$ rm -rf distribution
$ sed -i "s|// include ':gen-libs'|include ':gen-libs'|" settings.gradle
$ sed -i "s|// api project(':gen-libs')| api project(':gen-libs')|" app/build.gradle
$ ./gradlew build
I end up with an error like
> Task :app:buildCMakeDebug[arm64-v8a] FAILED
C/C++: ninja: error: '/ndk-samples/hello-libs/distribution/gmath/lib/arm64-v8a/libgmath.a', needed by '/ndk-samples/hello-libs/app/build/intermediates/cxx/Debug/141w5z33/obj/arm64-v8a/libhello-libs.so', missing and no known rule to make it
Since the cmake build in gen-libs doesn't run before the one in app, despite the dependency being specified.
If I run this
I end up with an error like
Since the cmake build in gen-libs doesn't run before the one in app, despite the dependency being specified.
When running with --info, I can see
So
:gen-libs:buildCMakeDebug[arm64-v8a][gmath gperf]
appears after:app:buildCMakeDebug[arm64-v8a]
.If I run
./gradlew --info :app:assembleDebug
I getSo, while some :gen-libs tasks are there, the CMake ones are not.
Somehow the
doesn't seem to apply to the native builds.
Am I misunderstanding how this is supposed to work?
Is this a bug in the Android Gradle Plugin or in the example?
The text was updated successfully, but these errors were encountered: