react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

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

Open shabaz-ejaz opened this issue 2 years ago • 12 comments

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)

shabaz-ejaz avatar Nov 15 '23 21:11 shabaz-ejaz

+1 Same

redpicsel avatar Nov 16 '23 07:11 redpicsel

Any update on this?

shabaz-ejaz avatar Nov 20 '23 21:11 shabaz-ejaz

@wcandillon Check it please !

redpicsel avatar Nov 21 '23 04:11 redpicsel

+1 me too

ddztomcat avatar Dec 02 '23 02:12 ddztomcat

+1

Virajmakwana avatar Jan 12 '24 11:01 Virajmakwana

+1

JoeMartin2001 avatar Jan 15 '24 16:01 JoeMartin2001

+1

Aditya3034 avatar Jan 28 '24 17:01 Aditya3034

+1

baqar222 avatar Mar 01 '24 13:03 baqar222

+1

QSuraj avatar Mar 06 '24 09:03 QSuraj

+1

nanotorus avatar Apr 09 '24 09:04 nanotorus

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

wcandillon avatar Apr 09 '24 09:04 wcandillon

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.

shabaz-ejaz avatar Aug 01 '24 12:08 shabaz-ejaz