Closed bekatd closed 9 months ago
I tried everything from A to Z found on internet (searching for almost 30 hours). Hope there is some solution :|
Hi, you didn't post an error message. Only warnings from the log are here (w:
).
Please post full output.
how is this only warning
Please tell me, what type of log can I give you additionally?
Downgrading to 2.13.0 fixed it for me. I don't know why.
If it is related to the RN version, I think it should be mentioned in the docs
I am using RN 0.64.1
Ah my bad I just didn't see the error correctly. You're right, this is available only on newer RN versions
I have this problem too, do we have any updates?
See my comment above about downgrade
This might be related to #957.
The downgrade did not work here.
"react-native": "0.63.2" "react-native-vision-camera": "2.13.0"
The downgrade did not work here.
"react-native": "0.63.2" "react-native-vision-camera": "2.13.0"
Same here.. Downgrade is also not working for me. I had installed version "2.11.2" After changing and tried with version "2.13.2", "2.13.1" & "2.13.2" facing above error.
And even after changed to old version i.e. "2.11.2", node_modules packages are updated so that error show continue while building Android code.
Try to run gradlew clean and delete node modules. Also if you have old expo unimodules installation, try to migrate to new expo modules
Also please post screenshot from android studio, what went wrong exactly
Try to run gradlew clean and delete node modules. Also if you have old expo unimodules installation, try to migrate to new expo modules
Yes, did all of above.
But even after all these, got this error
But error you posted can't happen in case of 2.13.0. You are trying to install 2.13.2 right?
I had exact same error and resolved by downgrading to 2.13.0
But error you posted can't happen in case of 2.13.0. You are trying to install 2.13.2 right?
No, I tested with version 2.13.0
I had exact same error and resolved by downgrading to 2.13.0
Yes I saw your post and solution you gave. And I also tried to implement it and after all that trial and error I got this result with all versions. Only working version is 2.11.2 and that is also with old node packages. Otherwise no luck :(
But simply v2.13.0 does not have the code you are showing on screenshot of error
You mean to say, the file I am getting an error called FrameProcessorRuntimeManage.kt
is not included in v2.13.0?
Yes. You are somehow installing latest version instead of 2.13.0
Here is the link to source of that file from v2.13.0 https://github.com/mrousavy/react-native-vision-camera/blob/65d4d46f6ab4e04dca15c15b8cf9c07a17f97d72/android/src/main/java/com/mrousavy/camera/frameprocessor/FrameProcessorRuntimeManager.kt
Just delete node_modules, edit lib version in package.json to 2.13.0, run yarn or npm, run gradlew clean and thats it
That is a RN version error, are you on 0.67?
Same problem. Have any suggestions??
Same problem. Have any suggestions??
In my case below solutions is working..
npm i
npm i react-native-vision-camera@2.13.0
Downgrading to 2.13.0
works fine for both android and iOS but some features like zoom and auto light adjustment wont work on iOS which are actually available in 2.13.3
Downgrading to version 2.13.0 works fine.
+1
Facing same failed condition!
Tried lower versions but that didn't help.
Android React Native: 0.61.5 Vision Camera: 2.14.1
Facing same failed condition!
Tried lower versions but that didn't help.
Android React Native: 0.61.5 Vision Camera: 2.14.1
May be you should try to upgrade React Native version
May be you should try to upgrade React Native version
Which React Native version are you using?
May be you should try to upgrade React Native version
Which React Native version are you using?
I am using React Native 0.63.4 and vision camera version 2.13.0 ... still takeSnapshot
for android doesn't work but takePhoto
works for both
May be you should try to upgrade React Native version
Which React Native version are you using?
I am using React Native 0.63.4 and vision camera version 2.13.0 ... still
takeSnapshot
for android doesn't work buttakePhoto
works for both
Thanks I will try to upgrade but React native upgrade is a lot of pain especially from an older version for an existing app! 😥
@mrousavy - I am on RN 0.67.2 and still encountering this, even with 2.13.0
are you saying that this bug is only relevant to to RN 0.67.X users?
I found a solution. resolveView method was inserted at RN 0.66.
minor RN can't use latest vision camera.
To fix this. open FrameProcessorRuntimeManger.kt and edit
val view: CameraView? = ctx?.currentActivity?.findViewById<CameraView>(viewId)
// val view = if (ctx != null) UIManagerHelper.getUIManager(ctx, viewId)?.resolveView(viewId) as CameraView? else null
open CameraViewModule.kt and edit
val view: CameraView? = ctx?.currentActivity?.findViewById<CameraView>(viewId)
// val view = if (ctx != null) UIManagerHelper.getUIManager(ctx, viewId)?.resolveView(viewId) as CameraView? else null
I can't use 0.66, my project use 0.64
FAILED "react-native": "0.63.5", "react-native-vision-camera": "2.13.0",
This worked for me, IMPORTANT: "react-native-gesture-handler:" "^2.9.0" was the problem, changed to to "1.10.3".
"react": "17.0.1",
"react-native": "0.64.4",
"react-native-gesture-handler": "1.10.3",
"react-native-vision-camera": "^2.13.0"
Downgrading to 2.13.0 fixed it for me. I don't know why.
If it is related to the RN version, I think it should be mentioned in the docs
I am using RN 0.64.1
"react": "17.0.2",
"react-native": "^0.64.2",
gradle version:
com.android.tools.build:gradle:4.2.0
gradle-6.7.1
"react-native-vision-camera": "2.13.0"
cleared node modules and package-lock.json ran this command in terminal : npm i; cd android ; ./gradlew clean; cd ..
This worked
Any updates on this? In the sense that the current expo sdk and react native version will support react-native-vision-camera properly? expo: 49.0.5 react-native: 0.72.3 react-native-vision-camera: 2.15.4
For me downgrading Kotlin worked well
Just change the kotlinVersion
in android/build.gradle
to 1.7.21 (I didn't check other versions):
buildscript {
ext {
...
kotlinVersion = '1.7.21'
...
}
...
}
https://github.com/mrousavy/react-native-vision-camera/issues/1977
2.16.2 This problem occurs
I have the same issue:
"react-native": "0.74.1",
"react-native-vision-camera": "^4.0.3",
"expo": "51.0.4",
Expo managed build results in: Execution failed for task ':react-native-vision-camera:compileDebugKotlin'. A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Works fine on iOS.
Tried most of the suggestions in this thread but nothing seems to work - all resulting in the same error.
Tried with different Kotlin versions "1.9.24"
, 1.7.21
and 1.7.20
I have the same issue:
"react-native": "0.74.1", "react-native-vision-camera": "^4.0.3", "expo": "51.0.4",
Expo managed build results in:
Execution failed for task ':react-native-vision-camera:compileDebugKotlin'. A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Works fine on iOS.Tried most of the suggestions in this thread but nothing seems to work - all resulting in the same error.
Tried with different Kotlin versions
"1.9.24"
,1.7.21
and1.7.20
Hello, I was having the same problem, I updated expo to v50.0.10, react native v0.73.6, react-native-vision-camera v3.6.14 and the same error appeared, what I did was change the version of react-native-vision -camera to v3.8.2 and it worked perfectly.
I recommend you remove node_modules and package-log.json.
Then npm i react-native-vision-camera@3.8.2, try to see how it goes!
@Georg7 I have the same issue, tried changing versions as suggested in this link but nothing helps unfortunately.
Execution failed for task ':react-native-vision-camera:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details
"react-native": "0.74.0",
"react-native-vision-camera": "^4.0.4",
android/build.gradle
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath 'com.google.gms:google-services:4.4.1'
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
apply plugin: "com.facebook.react.rootproject"
What were you trying to do?
I am trying to install this library
Reproduceable Code
No response
What happened instead?
Build fails at this step:
> Task :react-native-vision-camera:compileDebugKotlin FAILED
Relevant log output
Device
Xiaomi mi A2 lite (real device)
VisionCamera Version
2.13.2
Additional information