Closed brandtnewlabs closed 3 years ago
Hey Lennart!
Looks like a version mismatch, see the compatibility table in the README:
Animateable Text Version | RN Version |
---|---|
>= 0.6.0 | >= 0.64 |
>= 0.5.9 | >= 0.63 |
Can you try to pin to a lower version and see if you still get the error? If you do, I'll take a closer look.
Hi Jonny,
oh yes, sorry for that! I just installed "react-native-animateable-text": "0.5.9" and now, the App just crashes on launch. Just to make sure, I then removed the module and it didn't crash without having react-native-animateable-text in my project.
The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build. This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal. Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects. If the parent project does not need the plugin, add 'apply false' to the plugin line. See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl The Kotlin plugin was loaded in the following projects: ':expo-image-loader', ':react-native-animateable-text'
Task :app:installDebug 10:22:16 V/ddms: execute: running am get-config 10:22:16 V/ddms: execute 'am get-config' on '97GAY10LMS' : EOF hit. Read: -1 10:22:16 V/ddms: execute: returning Installing APK 'app-debug.apk' on 'Pixel 3a - 10' for app:debug 10:22:16 D/app-debug.apk: Uploading app-debug.apk onto device '97GAY10LMS' 10:22:16 D/Device: Uploading file onto device '97GAY10LMS' 10:22:16 D/ddms: Reading file permision of /Users/lennart/Projects/weburn/android/app/build/outputs/apk/debug/app-debug.apk as: rw-r--r-- 10:22:18 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk" 10:22:21 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on '97GAY10LMS' : EOF hit. Read: -1 10:22:21 V/ddms: execute: returning 10:22:21 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk" 10:22:21 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on '97GAY10LMS' : EOF hit. Read: -1 10:22:21 V/ddms: execute: returning Installed on 1 device. w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
Nevermind. I just tried to find out why it crashes with adb logcat and suddenly the App starts again. Thanks a lot for helping me out! I hope this issue helps the next developer who's stuck with version missmatch :D
Ok, that's great to hear! π We are running the same version. And although we get the same warning, it doesn't lead to a crash. I think I can remove the kotlin plugin, I'll try and remove it in the next version (I know you need to run an old version but hopefully you'll upgrade too when RN64 is officially out).
I actually removed the kotlin plugin and then the App crashed π So I just ignored the warning.
Hi there,
I'm glad I found your package as it's exactly what I am looking for. But after installing the module, my Android build stops working. Here's the console output:
I'm using the following module versions:
Is there anything else you need to know?
UPDATE:
Commenting out the apply plugin 'kotlin-android' in the module's build.gradle and then running yarn again seems to resolve the first part of the error message. The build still fails because of the 3 other error messages.