Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shabaz-ejaz opened this issue Nov 15, 2023 · 11 comments
Open
Labels
bug Something isn't working

Comments

@shabaz-ejaz
Copy link

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 shabaz-ejaz added the bug Something isn't working label Nov 15, 2023
@redpicsel
Copy link

+1 Same

@shabaz-ejaz
Copy link
Author

Any update on this?

@redpicsel
Copy link

@wcandillon Check it please !

@ddztomcat
Copy link

+1 me too

@Virajmakwana
Copy link

+1

5 similar comments
@JoeMartin2001
Copy link

+1

@Aditya3034
Copy link

+1

@baqar222
Copy link

baqar222 commented Mar 1, 2024

+1

@QSuraj
Copy link

QSuraj commented Mar 6, 2024

+1

@nanotorus
Copy link

+1

@wcandillon
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants