architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

WorkManagerSample fails in CircleCI

Open ianhanniballake opened this issue 5 years ago • 3 comments

As seen here:

Task :lib:compileDebugRenderscript FAILED /opt/android/sdk/build-tools/29.0.3/llvm-rs-cc: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

FAILURE: Build failed with an exception.

Execution failed for task ':lib:compileDebugRenderscript'. com.android.ide.common.process.ProcessException: Error while executing process /opt/android/sdk/build-tools/29.0.3/llvm-rs-cc with arguments {-I /opt/android/sdk/build-tools/29.0.3/renderscript/include/ -I /opt/android/sdk/build-tools/29.0.3/renderscript/clang-include/ -p /home/circleci/project/WorkManagerSample/lib/build/generated/renderscript_source_output_dir/debug/out -target-api 18 /home/circleci/project/WorkManagerSample/lib/src/main/rs/waterColorEffect.rs /home/circleci/project/WorkManagerSample/lib/src/main/rs/grayscale.rs -O 3 -o /home/circleci/project/WorkManagerSample/lib/build/generated/res/rs/debug/raw}

I've tried a number of approaches in #803 to fix the issue, but hit only a number of dead ends. It seems like this first occurred after 53282aa3ee94c283b2a8d4e966db29be00f3fc75 when we switched to circleci/android:api-29.

ianhanniballake avatar Feb 10 '20 07:02 ianhanniballake

We might be able to install them at runtime https://discuss.circleci.com/t/convenience-images-update-installing-the-android-ndk/29138

JoseAlcerreca avatar Feb 12 '20 12:02 JoseAlcerreca

I tried switching to the android:api-29-ndk image as part of my pull request and that didn't help - installing the NDK shouldn't be required for using Renderscript.

From what I can gather, this is more about Renderscript incorrectly assuming a native library is available on the host system, which was why many of my attempts on the pull request we're about trying to install that missing library.

ianhanniballake avatar Feb 12 '20 15:02 ianhanniballake

I've temporarily disabled WorkManagerSample in CircleCI in 9c5c077c94336893fde5d2d08e832430a6ffd24a until we can come up with a fix.

ianhanniballake avatar Feb 16 '20 20:02 ianhanniballake