Closed vvodicka closed 1 year ago
This should be fixed with latest
This should be fixed with latest
with latest you mean 3.2.2? because I tried it and the issue is still there.
I dont see any error related to Visioncamera in your logs though
with 3.3.1 the first problem with duplicate classes disappear but the second one Only schema_version 1 is supported. ReactAndroid uses version 2.
stays.
> [CXX1405] error when building with cmake using [...]/node_modules/react-native-vision-camera/android/CMakeLists.txt: Build command failed.
Error while executing java process with main class com.google.prefab.cli.AppKt with arguments {--build-system cmake --platform android --abi x86_64 --os-version 28 --stl c++_shared --ndk-version 21 --output [...]/node_modules/react-native-vision-camera/android/.cxx/Debug/45r1v224/prefab/x86_64/prefab [...]/.gradle/caches/transforms-3/34f0f525c4d305edfe2d9d9d24bd6b0f/transformed/jetified-react-android-0.73.0-rc.1-debug/prefab [...]/.gradle/caches/transforms-3/f35e3e913dc614162c5b29b3a1444056/transformed/jetified-fbjni-0.5.1/prefab}
Exception in thread "main" java.lang.IllegalArgumentException: Only schema_version 1 is supported. ReactAndroid uses version 2.
additional info: when I tried to create minimal example project for this issue I encountered other issue:
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not find any matches for com.facebook.react:react-android:+ as no versions of com.facebook.react:react-android are available.
Searched in the following locations:
- file:/Users/vladislavvodicka/others/camera/node_modules/react-native/android/com/facebook/react/react-android/maven-metadata.xml
- file:/Users/vladislavvodicka/others/camera/node_modules/jsc-android/dist/com/facebook/react/react-android/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-android/maven-metadata.xml
- https://www.jitpack.io/com/facebook/react/react-android/maven-metadata.xml
Required by:
project :app > project :react-native-vision-camera
created repo for it: https://github.com/vvodicka/react-native-vision-camera-android-build-error
I still think that is has something to do with older RN version. Namely 0.68.
Same problem. "react-native": "0.68.7"
, "react-native-vision-camera": "^3.3.1"
> Task :react-native-vision-camera:configureCMakeDebug FAILED
C/C++: prefabException in thread "main" java.lang.IllegalArgumentException: Only schema_version 1 is supported. ReactAndroid uses version 2.
C/C++: prefab at com.google.prefab.api.Package.<init>(Package.kt:46)
C/C++: prefab at com.google.prefab.cli.Cli$packages$2.invoke(Cli.kt:124)
C/C++: prefab at com.google.prefab.cli.Cli$packages$2.invoke(Cli.kt:95)
C/C++: prefab at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
C/C++: prefab at com.google.prefab.cli.Cli.getPackages(Cli.kt)
C/C++: prefab at com.google.prefab.cli.Cli.validate(Cli.kt:172)
C/C++: prefab at com.google.prefab.cli.Cli.run(Cli.kt:189)
C/C++: prefab at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:168)
C/C++: prefab at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:16)
C/C++: prefab at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:258)
C/C++: prefab at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:255)
C/C++: prefab at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:273)
C/C++: prefab at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:298)
C/C++: prefab at com.google.prefab.cli.AppKt.main(App.kt:28)
@vvodicka Are you by any chance using monorepo?
Nope, I am not.
Dňa št 19. 10. 2023 o 6:32 Iskandar Zulqarnain Hilmi < @.***> napísala(a):
@vvodicka https://github.com/vvodicka Are you by any chance using monorepo?
— Reply to this email directly, view it on GitHub https://github.com/mrousavy/react-native-vision-camera/issues/1881#issuecomment-1769874802, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRAWIB7G3NJQTB7GLTKKC3YACUNPAVCNFSM6AAAAAA5MIANKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRZHA3TIOBQGI . You are receiving this because you were mentioned.Message ID: @.***>
I have the same issue, anybody got fix or updates regarding this? @vvodicka
How were you trying to build the app?
npx react-native run-android --variant devDebug --appIdSuffix dev --active-arch-only
Nothing special...perhaps V3 is not meant to be used with older RN? If yes, maybe it's wort mentioning it in requirements.
Full build logs
Project dependencies
VisionCamera Version
3.1.0
Target platforms
Android
Operating system
MacOS
Can you build the VisionCamera Example app?
Yes, I can successfully build the Example app here
Additional information