yutasuzuki / react-native-record-screen

react-native-record-screen
MIT License
148 stars 39 forks source link

Not working on Android 12 #100

Open AlejandroAguilar99 opened 1 year ago

AlejandroAguilar99 commented 1 year ago

Hi, i've been trying to record the screen on an Android 12 device but it just doesn't work, tried this on other android versions and works well, what could be the reason?

JohnMurwin commented 1 year ago

Are you getting errors similar to:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
5 actionable tasks: 5 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':react-native-record-screen' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

I am also having trouble building on RN0.71.7 with Android 12.

AlejandroAguilar99 commented 1 year ago

Are you getting errors similar to:


Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

5 actionable tasks: 5 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.

The following dependencies do not satisfy the required version:

project ':react-native-record-screen' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

I am also having trouble building on RN0.71.7 with Android 12.

Hey! no i didn't get those errors, but it seems that your problem is related to the kotlin version of your project, it says that version 1.5.20> is required but it's using the 1.3.50 I'm sorry I can't help you more

mathysFor commented 1 year ago

Hi @AlejandroAguilar99 , did you find a solution ? got the same issue

AlejandroAguilar99 commented 1 year ago

Hi @AlejandroAguilar99 , did you find a solution ? got the same issue

Hey man, well what solved it for us was to remove RecordScreen.clean(), we were putting it before the recording started and that was causing conflicts, idk if that can also be your solution

dprajapati1179 commented 1 year ago

Has anyone found any solution ?

skjortan23 commented 1 year ago

Same issue actually opened a separate issue around that.

mathysFor commented 1 year ago

Same issue actually opened a separate issue around that.

  • What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':react-native-record-screen' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Has anyone found any solution ?

1.7.1 work for me after try everything