RootEncoder icon indicating copy to clipboard operation
RootEncoder copied to clipboard

Using older Gradle Version

Open ggpaeg opened this issue 3 years ago • 2 comments

Hi, @pedroSG94!

I'm using your library on a project that needs older Gradle configuration. I need to use these parameters in order to keep compatibility.

ext.kotlin_version = '1.4.10' classpath 'com.android.tools.build:gradle:3.3.0'

distributionUrl=https://services.gradle.org/distributions/gradle-5.6.4-bin.zip

When I tried to import this library in my project, I got the following error.

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.

I need to use older library version?

ggpaeg avatar Mar 26 '22 19:03 ggpaeg

Hello,

You have 2 options:

  • Update kotlin version
  • Compile library manually with kotlin version 1.4.0 (you can create a fork and upload the project to jitpack if you want) If you want upload it to jitpack. You only need change library_group to your user name here: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/build.gradle After that, you can create a tag using github interface and upload will start automatically. You can check it in jitpack to know gradle to use.

pedroSG94 avatar Mar 28 '22 08:03 pedroSG94

@pedroSG94 , I'm getting this error: I already have 1.8.0

jetified-rtplibrary-2.2.4/jars/classes.jar!/META-INF/rtplibrary_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.

What can I do?

AlexUrrutia avatar Apr 11 '23 17:04 AlexUrrutia

Closing as inactive.

pedroSG94 avatar Feb 26 '24 09:02 pedroSG94