This message was deleted.
# helpdesk
s
This message was deleted.
m
cc @eager-raincoat-52616
🙏 1
e
have you tried
1.4.0
for kotlin?
n
@eager-raincoat-52616 yes, same error
I really don’t know what to do with it since I’ve tried several ways to make it work
always the
livekit_react-native:compileReleaseKotlin
complains about this …
could it be related to some caching issue, @eager-raincoat-52616?
e
maybe remove the kotlin stuff from your files if you’re not using this. I just tried a fresh build, where the template doesn’t include anything for kotlin, and works fine
n
@eager-raincoat-52616 building the app for release?
e
just ran:
npx react-native init rnsixseven --version 0.67.5
yarn add @livekit/react-native @livekit/react-native-webrtc
yes
n
ok
very very weird this error
but @eager-raincoat-52616, what should I do if I need kotlin for other libraries?
I mean I should be able to use kotlin since nowadays there are libraries with needs it, right?
e
you don’t need to declare the dependency if you’re not using it yourself
libraries handle their own dependencies
n
Ok, i see
let me try and come back to you, is it ok?
e
sure
🙏 1
n
@eager-raincoat-52616 I’ve tried your way also and did not work
same error
it’s insane already what am I doing wrong?
brand new app just installed the 2 packages for livekit
added the configuration from ReadMe. and compile using Android Studio in release mode the app
You can see I only have 2 packages witch are turning on to release nothing else added
Copy code
> Task :app:lintVitalRelease
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    {project_path}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.6.21/5e5b55c26dbc80372a920aef60eb774b714559b8/kotlin-stdlib-common-1.6.21.jar (version 1.6)
     {project_path}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.4.10/998caa30623f73223194a8b657abd2baec4880ea/kotlin-stdlib-jdk8-1.4.10.jar (version 1.4)
     {project_path}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.4.10/30e46450b0bb3dbf43898d2f461be4a942784780/kotlin-stdlib-jdk7-1.4.10.jar (version 1.4)
     {project_path}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.10/ea29e063d2bbe695be13e9d044dcfb0c7add398e/kotlin-stdlib-1.4.10.jar (version 1.4)
     {project_path}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.10/6229be3465805c99db1142ad75e6c6ddeac0b04c/kotlin-stdlib-common-1.4.10.jar (version 1.4)
     {project_path}/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.21/11ef67f1900634fd951bad28c53ec957fabbe5b8/kotlin-stdlib-1.6.21.jar (version 1.6)
I get this because I don’t specify the Kotlin version
e
can you just upload the nonworking project?
n
where?
e
github if you can, or you can upload here, but make sure to clean the folder for node_modules and build files
n
let me upload at on github and invite u
can you give me username?
or nvm i make it public
e
it works for me. how are you building the project? I’m just running
npx react-native run-android --variant release
.
n
I’ve used android studio -> changed the variant to release and turn project on my personal android device
I will try again to see if the error persists
e
could be you’ve got some other local file setting the kotlin version that didn’t get uploaded to git
try checking out your repo in a clean folder and building from there
n
I don’t. Let me try again
@eager-raincoat-52616 ok, seems like w/o any kotlin configuration works but my only concern is with this error if I need to worry about them or not
The sad part is i have the other project to upgrade it to React Native
v0.67.5
to see if like this will work because on RN
v0.64.1
I get the error with Unknown witch hopefully may the upgrade to a higher RN version solve this?
What do you think, @eager-raincoat-52616?
e
not sure why you get those errors, but if you’re upgrading you might as well upgrade to the latest.
n
you suggest to try
0.70.x
or take small steps initially to a
0.67.5
since the upgrade will be huge
The project I am working on has more than 2y of development so there are many things in there :))
e
there’s a react-native upgrade helper tool that tells you what you need to do to upgrade
n
yap, I know
but usually I saw even with the tool for upgrade is not always plug and play since some other pages may need also some tweaks
Hopefully a newer version of RN can solve on my project that weird error I get with
Copy code
2023-06-18 18:42:46.665396+0300 uHubs Dev[8610:509463] [javascript] TypeError: undefined is not an object (evaluating 'r(d[8]).Room')