Closed maddeye closed 9 months ago
any updates on this one?
Not really. I found, that Gradle 7.3.3 and Gradle Plugin 7.2.2 is the sweetspot to get everything running and use the current react. You can set this in Android Studio -> Open Module Settings -> Project. Hope this helps!
Having the same error.
any update on that ? I am having the same error.
any update on that ? I am having the same error.
I added kotlinVersion = "1.7.0"
(under buildToolsVersion
) to android/build.gradle
and error disappeared.
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.
Thank you @sleaper that solves the issue on my side.
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.
Gracias buen hombre 👨💻 ! ✨ funcionó perfecto
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.
Muchas Gracias bro. El problema se resolvió @sleaper
Adding kotlinVersion =1.7.0
to my android/gradle.properties
file in my project fixed it for me.
Adding
kotlinVersion =1.7.0
to myandroid/gradle.properties
file in my project fixed it for me.
By android/gradle.properties
do you mean android/build.gradle
issue still persists on react-native@0.71.3
still issue on react-native 0.71.7
still issue on react-native@0.71.7
Follow this instruction, and it's working on RN 0.71.8
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.
Bug is still there, i have a temporary fix for everyone who faces this error:
go to react-native-vision-camera
in the node-modules
folder. There go to android/build.gradle
and search for this line org.jetbrains.kotlin:kotlin-gradle-plugin
, change it to: org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20
save, then run cd android && ./gradlew clean
and then restart your App, works for me, i hope this bug gets fixed soon
This is stopping me from using this in production. Please fix it @mrousavy
Has anyone gotten it to work with rn 0.70.8?
Has anyone gotten it to work with rn 0.70.8?
Yes, try my answer two messages above
Bug is still there, i have a temporary fix for everyone who faces this error: go to
react-native-vision-camera
in thenode-modules
folder. There go toandroid/build.gradle
and search for this lineorg.jetbrains.kotlin:kotlin-gradle-plugin
, change it to:org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20
save, then runcd android && ./gradlew clean
and then restart your App, works for me, i hope this bug gets fixed soon
Worked for me Thank you :-)
That's because RN upgrades (or other libs that use Kotlin) break the version. There's not a lot I can do about this apart from just updating Kotlin version everytime.
@mrousavy Please upgrade the version because only you can update the npm package. I would have to manually make changes to the library folder in node_modules
every time I want to build locally and if I want to use EAS build I can't even do that.
Please push this change. Thank you!
ndroid/gradle.properties
Thanks bro, life saver.
For those using expo you can install a config plugin: https://docs.expo.dev/versions/latest/sdk/build-properties/
and in your app.json
"expo":
"plugins": [
[
"expo-build-properties",
{
"android": {
"kotlinVersion": "1.7.0"
}
}
]
]
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.
@sleaper thanks!
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.
Thank you so much for giving the solution. It has reduced my efforts.
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.Thank you so much for giving the solution. It has reduced my efforts.
My previous error is eliminated but now my screen turns blank when I start the camera. Any fix for it.?
I tried the method you provided but my apk just crashes as soon as I open it. Is there a way to fix this?
I've literally tried every suggested fix on this thread, and none of them have worked. I can't get past a gradle sync.
Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3.
I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here?
Here's an instruction on how you can test that: https://github.com/mrousavy/react-native-vision-camera/pull/1674#issuecomment-1684104217
If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉 Otherwise please let me know and I'll keep this issue open to keep track of it.
Thank you!
@mrousavy Please upgrade the version because only you can update the npm package. I would have to manually make changes to the library folder in
node_modules
every time I want to build locally and if I want to use EAS build I can't even do that.Please push this change. Thank you!
use npm patch-package to patch it on your end with your changes so it applies changes on every npm install until the new version comes out
edit : i checked the files, it picks your kotlin version from your android/build.gradle but only if you have it defined there and the name matches "kotlinVersion"
make sure you have it in your ext config and the name matches, i was using "kotlin_version"
as kotlin version variable which caused the issue.
@mrousavy Please upgrade the version because only you can update the npm package. I would have to manually make changes to the library folder in
node_modules
every time I want to build locally and if I want to use EAS build I can't even do that. Please push this change. Thank you!use npm patch-package to patch it on your end with your changes so it applies changes on every npm install until the new version comes out
edit : i checked the files, it picks your kotlin version from your android/build.gradle but only if you have it defined there and the name matches
"kotlinVersion"
make sure you have it in your ext config and the name matches, i was using"kotlin_version"
as kotlin version variable which caused the issue.
This is the true answer, thank you so much!
Adding kotlinVersion =1.7.0 to my android/gradle.properties file in my project fixed it for me.
Hi, i already change the kotlin version to 1.7.0 FAILURE: Build failed with an exception. But, still showing same error. Please help. Error
my code: buildscript { ext.kotlin_version = '1.7.0' repositories { google() mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0'
classpath 'com.google.gms:google-services:4.3.15'
}
any update on that ? I am having the same error.
I added
kotlinVersion = "1.7.0"
(underbuildToolsVersion
) toandroid/build.gradle
and error disappeared.
Thanks man you save my time
What were you trying to do?
Run my demo application
Reproduceable Code
What happened instead?
Build Process crashes.
Relevant log output
Device
Android Simulator
VisionCamera Version
2.15.2
Additional information