Shopify / react-native-skia

High-performance React Native Graphics using Skia
https://shopify.github.io/react-native-skia
MIT License
6.9k stars 446 forks source link

Failed to create the APK. libreactskia.so', missing and no known rule to make #1098

Closed grigio closed 1 year ago

grigio commented 1 year ago

Description

I can't produce the android binary

Version

v0.1.158-alpha

Steps to reproduce

yarn bootstrap && cd example
--
➜  example git:(35248873) yarn e2e:build:android
yarn run v1.22.19
warning ../../../../package.json: No license field
$ owl build -p android
[OWL - CLI] Building the app on android platform.
> Task :react-native-gradle-plugin:compileKotlin UP-TO-DATE
> Task :react-native-gradle-plugin:compileJava NO-SOURCE
> Task :react-native-gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :react-native-gradle-plugin:processResources UP-TO-DATE
> Task :react-native-gradle-plugin:classes UP-TO-DATE
> Task :react-native-gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE
> Task :react-native-gradle-plugin:jar UP-TO-DATE

> Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
/home/grigio/Code/testing/react-native-skia/example/node_modules/react-native-reanimated/android/react-native-reanimated-70-hermes.aar

> Configure project :shopify_react-native-skia
react-native-skia: node_modules/ found at: /home/grigio/Code/testing/react-native-skia/example/node_modules/@shopify/react-native-skia/node_modules
react-native-skia: React Native version: 70
react-native-skia: Is Source build: false
react-native-skia: Prebuilt dir: /home/grigio/Code/testing/react-native-skia/example/node_modules/@shopify/react-native-skia/android/build/react-native-0*/jni
react-native-skia: Build type: debug

> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
                Welcome to Metro v0.72.3
              Fast - Scalable - Integrated

info Writing bundle output to:, /home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /home/grigio/Code/testing/react-native-skia/example/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 16 asset files
info Done copying assets
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:847:27: warning: the variable "Promise" was not declared in anonymous function " 26#"
    return new (P || (P = Promise))(function (resolve, reject) {
                          ^~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:1060:7: warning: the variable "clearTimeout" was not declared in anonymous function " 34#"
      clearTimeout(automateTimeout);
      ^~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:1061:25: warning: the variable "setTimeout" was not declared in anonymous function " 34#"
      automateTimeout = setTimeout(function () {
                        ^~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:1185:13: warning: the variable "clearInterval" was not declared in anonymous function " 43#"
            clearInterval(checkInterval);
            ^~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:1188:31: warning: the variable "setInterval" was not declared in anonymous function " 42#"
          var checkInterval = setInterval(function () {
                              ^~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:2876:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
        return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true;
                      ^~~~~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:9681:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 150#"
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:9699:146: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 179#"
    null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2]).UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args));
                                                                                                                                                 ^~~~~~~~~~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:10670:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
    setImmediate(function () {
    ^~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14591:12: warning: the variable "fetch" was not declared in anonymous function " 373#"
    fetch: fetch,
           ^~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14592:14: warning: the variable "Headers" was not declared in anonymous function " 373#"
    Headers: Headers,
             ^~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14593:14: warning: the variable "Request" was not declared in anonymous function " 373#"
    Request: Request,
             ^~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14594:15: warning: the variable "Response" was not declared in anonymous function " 373#"
    Response: Response
              ^~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14770:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
      var reader = new FileReader();
                       ^~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14815:36: warning: the variable "Blob" was not declared in anonymous function " 384#"
        } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
                                   ^~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14817:40: warning: the variable "FormData" was not declared in anonymous function " 384#"
        } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
                                       ^~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14819:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 384#"
        } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
                                           ^~~~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:15096:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 393#"
        var xhr = new XMLHttpRequest();
                      ^~~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:14603:76: warning: the variable "self" was not declared in anonymous function " 376#"
    var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global;
                                                                           ^~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:23228:27: warning: the variable "performance" was not declared in anonymous function " 541#"
  if ("object" === typeof performance && "function" === typeof performance.now) {
                          ^~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:23254:26: warning: the variable "navigator" was not declared in anonymous function " 541#"
  "undefined" !== typeof navigator && undefined !== navigator.scheduling && undefined !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
                         ^~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:23334:37: warning: the variable "MessageChannel" was not declared in anonymous function " 541#"
  };else if ("undefined" !== typeof MessageChannel) {
                                    ^~~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:32007:32: warning: the variable "requestAnimationFrame" was not declared in function "onUpdate"
        this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
                               ^~~~~~~~~~~~~~~~~~~~~
/home/grigio/Code/testing/react-native-skia/example/android/app/build/generated/assets/react/release/index.android.bundle:45715:18: warning: the variable "WebSocket" was not declared in function "initWebSocket"
    var ws = new WebSocket("ws://" + ipAddress + ":" + _$$_REQUIRE(_dependencyMap[1]).WEBSOCKET_PORT);
                 ^~~~~~~~~

> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preReleaseBuild
> Task :react-native-owl:preBuild UP-TO-DATE
> Task :react-native-owl:preReleaseBuild UP-TO-DATE
> Task :react-native-owl:compileReleaseAidl NO-SOURCE
> Task :react-native-safe-area-context:preBuild UP-TO-DATE
> Task :react-native-safe-area-context:preReleaseBuild UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseAidl NO-SOURCE
> Task :react-native-screens:preBuild UP-TO-DATE
> Task :react-native-screens:preReleaseBuild UP-TO-DATE
> Task :react-native-screens:compileReleaseAidl NO-SOURCE
> Task :shopify_react-native-skia:preBuild UP-TO-DATE
> Task :shopify_react-native-skia:preReleaseBuild UP-TO-DATE
> Task :shopify_react-native-skia:compileReleaseAidl NO-SOURCE
> Task :app:compileReleaseAidl NO-SOURCE
> Task :react-native-owl:packageReleaseRenderscript NO-SOURCE
> Task :react-native-safe-area-context:packageReleaseRenderscript NO-SOURCE
> Task :react-native-screens:packageReleaseRenderscript NO-SOURCE
> Task :shopify_react-native-skia:packageReleaseRenderscript NO-SOURCE
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:generateReleaseBuildConfig UP-TO-DATE
> Task :app:javaPreCompileRelease UP-TO-DATE
> Task :react-native-owl:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-safe-area-context:writeReleaseAarMetadata UP-TO-DATE
> Task :react-native-screens:writeReleaseAarMetadata UP-TO-DATE
> Task :shopify_react-native-skia:writeReleaseAarMetadata UP-TO-DATE
> Task :app:checkReleaseAarMetadata UP-TO-DATE
> Task :app:generateReleaseResValues UP-TO-DATE
> Task :app:mergeReleaseShaders UP-TO-DATE
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :react-native-owl:mergeReleaseShaders UP-TO-DATE
> Task :react-native-owl:compileReleaseShaders NO-SOURCE
> Task :react-native-owl:generateReleaseAssets UP-TO-DATE
> Task :react-native-owl:packageReleaseAssets UP-TO-DATE
> Task :react-native-safe-area-context:mergeReleaseShaders UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseShaders NO-SOURCE
> Task :react-native-safe-area-context:generateReleaseAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageReleaseAssets UP-TO-DATE
> Task :react-native-screens:mergeReleaseShaders UP-TO-DATE
> Task :react-native-screens:compileReleaseShaders NO-SOURCE
> Task :react-native-screens:generateReleaseAssets UP-TO-DATE
> Task :react-native-screens:packageReleaseAssets UP-TO-DATE
> Task :shopify_react-native-skia:mergeReleaseShaders UP-TO-DATE
> Task :shopify_react-native-skia:compileReleaseShaders NO-SOURCE
> Task :shopify_react-native-skia:generateReleaseAssets UP-TO-DATE
> Task :shopify_react-native-skia:packageReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseAssets UP-TO-DATE
> Task :app:copyReleaseBundledJs UP-TO-DATE
> Task :app:generateReleaseResources UP-TO-DATE
> Task :react-native-owl:compileReleaseRenderscript NO-SOURCE
> Task :react-native-owl:generateReleaseResValues UP-TO-DATE
> Task :react-native-owl:generateReleaseResources UP-TO-DATE
> Task :react-native-owl:packageReleaseResources UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseRenderscript NO-SOURCE
> Task :react-native-safe-area-context:generateReleaseResValues UP-TO-DATE
> Task :react-native-safe-area-context:generateReleaseResources UP-TO-DATE
> Task :react-native-safe-area-context:packageReleaseResources UP-TO-DATE
> Task :react-native-screens:compileReleaseRenderscript NO-SOURCE
> Task :react-native-screens:generateReleaseResValues UP-TO-DATE
> Task :react-native-screens:generateReleaseResources UP-TO-DATE
> Task :react-native-screens:packageReleaseResources UP-TO-DATE
> Task :shopify_react-native-skia:compileReleaseRenderscript NO-SOURCE
> Task :shopify_react-native-skia:generateReleaseResValues UP-TO-DATE
> Task :shopify_react-native-skia:generateReleaseResources UP-TO-DATE
> Task :shopify_react-native-skia:packageReleaseResources UP-TO-DATE
> Task :app:mergeReleaseResources UP-TO-DATE
> Task :app:mapReleaseSourceSetPaths UP-TO-DATE
> Task :app:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksRelease UP-TO-DATE
> Task :react-native-owl:extractDeepLinksRelease UP-TO-DATE
> Task :react-native-safe-area-context:extractDeepLinksRelease UP-TO-DATE
> Task :react-native-owl:processReleaseManifest UP-TO-DATE
> Task :react-native-safe-area-context:processReleaseManifest UP-TO-DATE
> Task :react-native-screens:extractDeepLinksRelease UP-TO-DATE
> Task :react-native-screens:processReleaseManifest UP-TO-DATE
> Task :shopify_react-native-skia:extractDeepLinksRelease UP-TO-DATE
> Task :shopify_react-native-skia:processReleaseManifest UP-TO-DATE
> Task :app:processReleaseMainManifest UP-TO-DATE
> Task :app:processReleaseManifest UP-TO-DATE
> Task :app:processReleaseManifestForPackage UP-TO-DATE
> Task :react-native-owl:compileReleaseLibraryResources UP-TO-DATE
> Task :react-native-owl:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-owl:generateReleaseRFile UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseLibraryResources UP-TO-DATE
> Task :react-native-safe-area-context:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-safe-area-context:generateReleaseRFile UP-TO-DATE
> Task :react-native-screens:compileReleaseLibraryResources UP-TO-DATE
> Task :react-native-screens:parseReleaseLocalResources UP-TO-DATE
> Task :react-native-screens:generateReleaseRFile UP-TO-DATE
> Task :shopify_react-native-skia:compileReleaseLibraryResources UP-TO-DATE
> Task :shopify_react-native-skia:parseReleaseLocalResources UP-TO-DATE
> Task :shopify_react-native-skia:generateReleaseRFile UP-TO-DATE
> Task :app:processReleaseResources UP-TO-DATE
> Task :react-native-owl:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-owl:javaPreCompileRelease UP-TO-DATE
> Task :react-native-owl:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-owl:bundleLibCompileToJarRelease UP-TO-DATE
> Task :react-native-safe-area-context:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseKotlin UP-TO-DATE
> Task :react-native-safe-area-context:javaPreCompileRelease UP-TO-DATE
> Task :react-native-safe-area-context:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-safe-area-context:bundleLibCompileToJarRelease UP-TO-DATE
> Task :react-native-screens:generateReleaseBuildConfig UP-TO-DATE
> Task :react-native-screens:compileReleaseKotlin UP-TO-DATE
> Task :react-native-screens:javaPreCompileRelease UP-TO-DATE
> Task :react-native-screens:compileReleaseJavaWithJavac UP-TO-DATE
> Task :react-native-screens:bundleLibCompileToJarRelease UP-TO-DATE
> Task :shopify_react-native-skia:generateReleaseBuildConfig UP-TO-DATE
> Task :shopify_react-native-skia:javaPreCompileRelease UP-TO-DATE
> Task :shopify_react-native-skia:compileReleaseJavaWithJavac UP-TO-DATE
> Task :shopify_react-native-skia:bundleLibCompileToJarRelease UP-TO-DATE
> Task :app:compileReleaseJavaWithJavac UP-TO-DATE
> Task :app:extractProguardFiles UP-TO-DATE
> Task :react-native-owl:processReleaseJavaRes NO-SOURCE
> Task :react-native-owl:bundleLibResRelease NO-SOURCE
> Task :react-native-owl:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :react-native-owl:createFullJarRelease UP-TO-DATE
> Task :react-native-owl:writeReleaseLintModelMetadata UP-TO-DATE
> Task :react-native-safe-area-context:processReleaseJavaRes NO-SOURCE
> Task :react-native-safe-area-context:bundleLibResRelease UP-TO-DATE
> Task :react-native-safe-area-context:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :react-native-safe-area-context:createFullJarRelease UP-TO-DATE
> Task :react-native-safe-area-context:writeReleaseLintModelMetadata UP-TO-DATE
> Task :react-native-screens:processReleaseJavaRes NO-SOURCE
> Task :react-native-screens:bundleLibResRelease UP-TO-DATE
> Task :react-native-screens:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :react-native-screens:createFullJarRelease UP-TO-DATE
> Task :react-native-screens:writeReleaseLintModelMetadata UP-TO-DATE
> Task :shopify_react-native-skia:processReleaseJavaRes NO-SOURCE
> Task :shopify_react-native-skia:bundleLibResRelease NO-SOURCE
> Task :shopify_react-native-skia:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :shopify_react-native-skia:createFullJarRelease UP-TO-DATE
> Task :shopify_react-native-skia:extractAARHeaders
> Task :shopify_react-native-skia:extractJNIFiles
> Task :shopify_react-native-skia:configureCMakeRelWithDebInfo[arm64-v8a]

> Task :shopify_react-native-skia:buildCMakeRelWithDebInfo[arm64-v8a] FAILED
C/C++: ninja: error: '../../../../../libs/android/arm64-v8a/libsvg.a', needed by '../../../../build/intermediates/cxx/RelWithDebInfo/1j2u5p3w/obj/arm64-v8a/libreactskia.so', missing and no known rule to make it

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':shopify_react-native-skia:buildCMakeRelWithDebInfo[arm64-v8a]'.
> Build command failed.
  Error while executing process /home/grigio/Android/Sdk/cmake/3.18.1/bin/ninja with arguments {-C /home/grigio/Code/testing/react-native-skia/example/node_modules/@shopify/react-native-skia/android/.cxx/RelWithDebInfo/1j2u5p3w/arm64-v8a reactskia}
  ninja: Entering directory `/home/grigio/Code/testing/react-native-skia/example/node_modules/@shopify/react-native-skia/android/.cxx/RelWithDebInfo/1j2u5p3w/arm64-v8a'

  ninja: error: '../../../../../libs/android/arm64-v8a/libsvg.a', needed by '../../../../build/intermediates/cxx/RelWithDebInfo/1j2u5p3w/obj/arm64-v8a/libreactskia.so', missing and no known rule to make it

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 57s
99 actionable tasks: 6 executed, 93 up-to-date
Error: Command failed with exit code 1: ./gradlew assembleRelease --console plain -PisOwlBuild=true
    at makeError (/home/grigio/Code/testing/react-native-skia/example/node_modules/react-native-owl/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/grigio/Code/testing/react-native-skia/example/node_modules/react-native-owl/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  shortMessage: 'Command failed with exit code 1: ./gradlew assembleRelease --console plain -PisOwlBuild=true',
  command: './gradlew assembleRelease --console plain -PisOwlBuild=true',
  escapedCommand: '"./gradlew" assembleRelease --console plain "-PisOwlBuild=true"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Specify --help for available options
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Snack, code example, screenshot, or link to a repository

.

chrfalch commented 1 year ago

Hi again, @grigio - you shouldn't need to build the example package - it requires you to also setup and build the Skia binaries. Install the npm package from the npm repository and all of this will work automatically for you. The example project is mainly for library development.

grigio commented 1 year ago

Ok, but I'd like to test and build the example app APK on Linux, how can I do it?

I changed the example app to make it a normal app but I still have the same errors

from

    "@shopify/react-native-skia": "link:../package/",

to

    "@shopify/react-native-skia": "v0.1.158 alpha",
chrfalch commented 1 year ago

Hi, @grigio - I would suggest you try the following steps to get started:

  1. Create a new React Native App (forget about the example app for now) (build and verify that your environment is correct)
  2. Install @shopify/react-native-skia (build and verify that your environment is correct)
  3. Copy code from the example and have fun with Skia :)

If you have problems in step 2 you are welcome to ask for help here - if you have problems in step 1 you should visit the react-native repo / stack overflow to get help and advise.

grigio commented 1 year ago

Thanks @chrfalch I followed that path and it worked, I've seen many open bug about an official Android apk to test the example app but every time I test React Native and dependencies I've esoteric errors

https://github.com/grigio/-react-native-skia-example-apk

Are there useful changes I can push to the official example app to fix it ? I'd like to build a working apk from the official example

https://github.com/grigio/-react-native-skia-example-apk/commit/ff660d15d01aa14dd725cef9a5585068fa22a37d

abdullahIsa commented 1 year ago

Hello, i am having same issue all of sudden, I am not running example folder.

``

Task :shopify_react-native-skia:buildCMakeRelWithDebInfo[armeabi-v7a] C/C++: ninja: Entering directory `C:\Users\Abdullah\Desktop\Programming\company\apps\Chappie\Chappie-0.70.6\Chappie\node_modules\@shopify\react-native-skia\android.cxx\RelWithDebInfo\5d5w714g\armeabi-v7a' C/C++: C:/Users/Abdullah/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: fatal error: ........\build\intermediates\cxx\RelWithDebInfo\5d5w714g\obj\armeabi-v7a\libreactskia.so: open: No such file or directory C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Task :shopify_react-native-skia:buildCMakeRelWithDebInfo[armeabi-v7a] FAILED w: Detected multiple Kotlin daemon sessions at build\kotlin\sessions

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5m 23s 628 actionable tasks: 599 executed, 29 up-to-date ``