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

I can't install the react native screens and gesturehandler dependencies, it's returning a TASK error - "React-native-screens:compileDebugJavaC #1493

Closed
pedrinho132 opened this issue Jun 27, 2022 · 12 comments
Assignees
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario

Comments

@pedrinho132
Copy link

No description provided.

@github-actions
Copy link

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Description, Steps To Reproduce, Reproduction and Platform sections.

@github-actions github-actions bot added Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario labels Jun 27, 2022
@erikms61
Copy link

erikms61 commented Jun 28, 2022

I have the exact same issue.
reproduction:
npx react-native init rn_screens_issue
cd rn_screens_issue
yarn android
yarn add @react-navigation/native
yarn android
yarn add react-native-safe-area-context
yarn android
yarn add react-native-screens
yarn android
last command fails with a series of "Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0."

editing android/build.gradle as per the github instructions had no effect on this error, and downgrading to kotlin 1.4.0 is impossible with the current version of Android Studio

reproduction in https://github.com/erikms61/rn_screens_issue.git

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided and removed Missing repro This issue need minimum repro scenario labels Jun 28, 2022
@andrewleong
Copy link

Please upgrade kotlinVersion to 1.7.0 Cheers

@github-actions github-actions bot added Missing repro This issue need minimum repro scenario Repro provided A reproduction with a snack or repo is provided and removed Repro provided A reproduction with a snack or repo is provided Missing repro This issue need minimum repro scenario labels Jun 28, 2022
@erikms61
Copy link

erikms61 commented Jun 28, 2022

Please upgrade kotlinVersion to 1.7.0 Cheers

Sometimes, feeling a noob can be very rewarding. For future reference, this is the diff
android/build.gradle:

buildscript {
    ext {
+        kotlinVersion = "1.7.0"
        buildToolsVersion = "31.0.0"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31

@nibblesnbits
Copy link

Seems duplicate of #1449

@github-actions github-actions bot added Missing repro This issue need minimum repro scenario and removed Repro provided A reproduction with a snack or repo is provided labels Jun 29, 2022
@github-actions
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?

@pedrinho132
Copy link
Author

Please upgrade kotlinVersion to 1.7.0 Cheers

thanks, it´s working now

@handiandida
Copy link

Please upgrade kotlinVersion to 1.7.0 Cheers

Sometimes, feeling a noob can be very rewarding. For future reference, this is the diff android/build.gradle:

buildscript {
    ext {
+        kotlinVersion = "1.7.0"
        buildToolsVersion = "31.0.0"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31

It's work to solve the problem

@isharadilshan
Copy link

Please upgrade kotlinVersion to 1.7.0 Cheers

Sometimes, feeling a noob can be very rewarding. For future reference, this is the diff android/build.gradle:

buildscript {
    ext {
+        kotlinVersion = "1.7.0"
        buildToolsVersion = "31.0.0"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31

This fix gives Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. any idea why I'm having this ?

@kkafar
Copy link
Member

kkafar commented Jun 30, 2022

Hi @pedrinho132!
We've just released version 3.14 with #1484 which should resolve your issues. Could you try to upgrade and let us know whether it works for you now?

@kkafar kkafar self-assigned this Jun 30, 2022
@kkafar
Copy link
Member

kkafar commented Jul 1, 2022

Closing this issue, as discussion can be moved here: #1449

@kkafar kkafar closed this as completed Jul 1, 2022
@isharadilshan
Copy link

Hi @pedrinho132! We've just released version 3.14 with #1484 which should resolve your issues. Could you try to upgrade and let us know whether it works for you now?

Yes, upgrading to v3.14 resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario
Projects
None yet
Development

No branches or pull requests

7 participants