Shopify / react-native-skia

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

A problem occurred evaluating project ':shopify_react-native-skia'. #1984

Open shabaz-ejaz opened 10 months ago

shabaz-ejaz commented 10 months ago

Description

I keep getting this error when I build my Android application with this package.

Build file 'D:\dev\proton\node_modules\@shopify\react-native-skia\android\build.gradle' line: 127

A problem occurred evaluating project ':shopify_react-native-skia'.
> No signature of method: build_dv9glgdfsyi4kws5so83p71u2.android() is applicable for argument types: (build_dv9glgdfsyi4kws5so83p71u2$_run_closure2) values: [build_dv9glgdfsyi4kws5so83p71u2$_run_closure2@46d7e7d8]

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

I have double checked npm and the package is installed fine.

Any idea what's going on here?

For context, I'm using RN version 0.72.7

Version

^0.1.218

Steps to reproduce

Simply did an NPM install on an existing project.

Try to build the app in Android studio and get the above errors.

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

Build file 'D:\dev\proton\node_modules\@shopify\react-native-skia\android\build.gradle' line: 127

A problem occurred evaluating project ':shopify_react-native-skia'.
> No signature of method: build_dv9glgdfsyi4kws5so83p71u2.android() is applicable for argument types: (build_dv9glgdfsyi4kws5so83p71u2$_run_closure2) values: [build_dv9glgdfsyi4kws5so83p71u2$_run_closure2@46d7e7d8]

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

Here is the snippet of code that the error is pointing to (build.gradle):

android {
    def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
    if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
      namespace "com.shopify.reactnative.skia"
    }

    compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
    buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
redpicsel commented 10 months ago

+1 Same

shabaz-ejaz commented 9 months ago

Any update on this?

redpicsel commented 9 months ago

@wcandillon Check it please !

ddztomcat commented 9 months ago

+1 me too

Virajmakwana commented 8 months ago

+1

JoeMartin2001 commented 8 months ago

+1

Aditya3034 commented 7 months ago

+1

baqar222 commented 6 months ago

+1

QSuraj commented 6 months ago

+1

nanotorus commented 5 months ago

+1

wcandillon commented 5 months ago

do you have a project where I could reproduce the issue?

shabaz-ejaz commented 1 month ago

do you have a project where I could reproduce the issue?

Not a public project I can share unfortunately, however judging from the above comments a lot of people are having the same issue. I suspect it could be related to M chip mac devices.