AzzappApp / react-native-skia-video

Video encoding/decoding support for React Native Skia
MIT License
46 stars 2 forks source link

[android] Build failing #11

Open AbijahKaj opened 2 weeks ago

AbijahKaj commented 2 weeks ago

Hello! I'm trying to build for android but the build is failing with this error.

> Task :azzapp_react-native-skia-video:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error at CMakeLists.txt:17 (add_library):
C/C++:   Target "react-native-skia-video" links to target
C/C++:   "react-native-reanimated::worklets" but the target was not found.  Perhaps
C/C++:   a find_package() call is missing for an IMPORTED target, or an ALIAS target
C/C++:   is missing?

My setup

AbijahKaj commented 2 weeks ago

Updating reanimated to "react-native-reanimated": "3.15.0", seems to fix the problem , but I still can't build.

I have a new error

Task :azzapp_react-native-skia-video:buildCMakeDebug[arm64-v8a] FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':azzapp_react-native-skia-video:buildCMakeDebug[arm64-v8a]'.

....

  [6/13] Building CXX object CMakeFiles/react-native-skia-video.dir/cpp/VideoFrame.cpp.o
  FAILED: CMakeFiles/react-native-skia-video.dir/cpp/VideoFrame.cpp.o 

            auto string = static_ref_cast<jni::JString>(error);
                 ^
  1 warning generated.
  ninja: build stopped: subcommand failed.
eyu0415 commented 2 weeks ago

That's not error just warning. I guess the android minSdkVersion required >= 26 The example in this repo has minSdkVersion target 28 you can set version in expo app.json with expo-build-properties

or

    // project/android/build.gradle
    minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '23')  // change 26