Closed lninnnn closed 1 year ago
Same for me
node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/extensions/Size+Extensions.kt: (12, 10): Unresolved reference: minBy
To fix this need to update kotlinVersion = '1.7.20'
@ObidosDev where exactly should we set kotlinVersion = '1.7.20' ?
Because I see the code inside library that is doing it already if I am not mistaken.
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['VisionCamera_kotlinVersion']
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Fri Feb 19 20:46:14 CET 2021
VisionCamera_kotlinVersion=1.7.20
android.enableJetifier=true
android.useAndroidX=true
To fix this need to update
kotlinVersion = '1.7.20'
my build gradle (check above) is already declared kotlinVerson = 1.7.20
@mrousavy Hi! Do you have time to look into this?
Hi! No, why?
node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/extensions/Size+Extensions.kt: (12, 10):
Unresolved reference: minBy
Android Studio. This errorπ
"react-native-vision-camera": "^3.0.0",
Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (π₯³) - if not, please create a new issue.
If your issue has been fixed, consider sponsoring me on GitHub to say thanks π
It's not fixed in 3.6.4
Upd: ext.kotlinVersion = '1.7.20' in build.gradle helped!
I was overriding this kotlinVersion somewhere else π₯²
What were you trying to do?
Updated from 2.15.4 to 3.0.0-rc.5
Reproduceable Code
What happened instead?
Build fail
Build.gradle
Relevant log output
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Device
Android
VisionCamera Version
3.0.0-rc05
Additional information