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

Build failed with react-native 0.72.0 #859

Closed
1 task done
clementnv opened this issue Jun 22, 2023 · 7 comments
Closed
1 task done

Build failed with react-native 0.72.0 #859

clementnv opened this issue Jun 22, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@clementnv
Copy link

clementnv commented Jun 22, 2023

Current behavior

Hi,
When I try to build my app with react-native 0.72.0, I have a failed error :

FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':shopify_flash-list:extractReleaseAnnotations'.
> Could not create task ':shopify_flash-list:compileReleaseKotlin'.
   > Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

To Reproduce

Build a release app on Android

Platform:

  • Android

Environment

react-native: 0.72.0
@shopify/flash-list: 1.4.3

@clementnv clementnv added the bug Something isn't working label Jun 22, 2023
@mefik1337
Copy link

+1 right now the same issue. Anyone know how to fix it?

@stefkampen
Copy link

stefkampen commented Jun 22, 2023

Add kotlinVersion to your project build.gradle (I used 1.8.22 the latest one)

ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33
        kotlinVersion = "1.8.22"

	    // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
        }

@clementnv
Copy link
Author

Thank's @stefkampen, it's solve the error 🙏

@billnbell
Copy link

Add kotlinVersion to your project build.gradle (I used 1.8.22 the latest one)

ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33
        kotlinVersion = "1.8.22"

	    // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
        }

Can this be set somewhere else? Why does kotlinVersion matter for this package?

@wodin
Copy link

wodin commented Jun 29, 2023

If you're using Expo, see this:

#862 (comment)

@Parmar-Bansi
Copy link

Add kotlinVersion to your project build.gradle (I used 1.8.22 the latest one)

ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33
        kotlinVersion = "1.8.22"

	    // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
        }

Failed to calculate the value of property 'jvmTarget'.
> Unknown Kotlin JVM target: 20

any idea about this..?

@Moatezz
Copy link

Moatezz commented Oct 19, 2023

didn't work for me you have to fix this problem

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

7 participants