android-face-landmarks
android-face-landmarks copied to clipboard
Build fail suddenly
Hi ,
I have been using your package in my React Native application since 2019 and is able to build and run with no issue, then suddenly late June this year I am not able to build your package. I try to build older version of my application which uses your package but still fails . Here is the error message :
Task :facialcamlib:compileDebugKotlin FAILED w: -Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.50/50ad05ea1c2595fb31b800e76db464d08d599af3/kotlin-stdlib-jdk7-1.3.50.jar (version 1.3) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar (version 1.5) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.10/6b84d926e28493be69daf673e40076f89492ef7/kotlin-stdlib-common-1.5.10.jar (version 1.5) w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings 36 actionable tasks: 33 executed, 3 up-to-date Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors e: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.10/6b84d926e28493be69daf673e40076f89492ef7/
Task :facialcamlib:compileDebugKotlin FAILED w: -Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.50/50ad05ea1c2595fb31b800e76db464d08d599af3/kotlin-stdlib-jdk7-1.3.50.jar (version 1.3) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar (version 1.5) C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.10/6b84d926e28493be69daf673e40076f89492ef7/kotlin-stdlib-common-1.5.10.jar (version 1.5) w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings 36 actionable tasks: 33 executed, 3 up-to-date Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors e: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.10/6b84d926e28493be69daf673e40076f89492ef7/kotlin-stdlib-common-1.5.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. e: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/a92c034ef4a50136f14b086e38b3c0dd/jars/classes.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (1, 7): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Suppress.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (25, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Unit.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (26, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Unit.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (33, 51): Class 'kotlin.Pair' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Pair.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (34, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. e: C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. e: C:/Users/user/.gradle/caches/transforms-2/files-2.1/a92c034ef4a50136f14b086e38b3c0dd/jars/classes.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (1, 7): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Suppress.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (25, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Unit.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (26, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Unit.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (33, 51): Class 'kotlin.Pair' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. The class is loaded from C:/Users/user/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar!/kotlin/Pair.class e: C:\dev\ReactNative\FEDMathQuiz_\android\facialcamlib\src\main\java\com\dev\anzalone\luca\facelandmarks\camera\CameraOverlay.kt: (34, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
I am not sure why during build it installed kotlin-stdlib-1.5.10.jar , any help will be great. Thanks.
Hi @TerryGoh,
Is possibile that a newer version of react native forces the build to install kotlin 1.5? Is that your case?
If so try to downgrage react, if possible. Otherwise you have to edit the kotlin code to make it compliant with the newer version.
Let me know if the issue still persist.