You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building the app using the Expo CLI with the expo run:android. The build completes successfully, but the following warnings are displayed. I can build example apps as well as my project app with the same warnings. Seems like worklets cause the warnings.
Full build logs
›Buildingapp...
StartingaGradleDaemon(subsequentbuildswillbefaster)Configurationondemand is anincubatingfeature.>Configureproject :expoUsingexpomodules-expo-asset(11.0.1)-expo-blur(14.0.1)-expo-constants(17.0.3)-expo-crypto(14.0.1)-expo-file-system(18.0.4)-expo-font(13.0.1)-expo-haptics(14.0.0)-expo-keep-awake(14.0.1)-expo-linking(7.0.3)-expo-localization(16.0.0)-expo-modules-core(2.1.1)-expo-splash-screen(0.29.13)-expo-system-ui(4.0.5)-expo-web-browser(14.0.1)>Configureproject :react-native-mmkv[react-native-mmkv]Thankyoufor using react-native-mmkv??[react-native-mmkv]Ifyouenjoy using react-native-mmkv,pleaseconsidersponsoringthisproject: https://github.com/sponsors/mrousavy>Configureproject :react-native-reanimatedAndroidgradleplugin: 8.6.0Gradle: 8.10.2>Configureproject :react-native-vision-camera[VisionCamera]Thankyoufor using VisionCamera??[VisionCamera]Ifyouenjoy using VisionCamera,pleaseconsidersponsoringthisproject: https://github.com/sponsors/mrousavy[VisionCamera]node_modulesfoundatC:\path\to\project\node_modules[VisionCamera]VisionCamera_enableFrameProcessors is settotrue![VisionCamera]react-native-worklets-corefound,FrameProcessorsareenabled![VisionCamera]VisionCamera_enableCodeScanner is settofalse!>Task :react-native-vision-camera:generateCodegenSchemaFromJavaScriptNomodulestoprocessincombine-js-to-schema-cli.Ifthis is unexpected,pleasecheckifyousetupyourNativeComponentcorrectly.Seecombine-js-to-schema.jsforhowcodegenfindsmodules.>Task :react-native-worklets-core:processDebugManifestpackage="com.worklets"foundinsourceAndroidManifest.xml: C:\path\to\project\node_modules\react-native-worklets-core\android\src\main\AndroidManifest.xml.SettingthenamespaceviathepackageattributeinthesourceAndroidManifest.xmlisnolongersupported,andthevalueisignored.Recommendation: removepackage="com.worklets"fromthesourceAndroidManifest.xml: C:\path\to\project\node_modules\react-native-worklets-core\android\src\main\AndroidManifest.xml.>Task :app:processDebugMainManifestC:\path\to\project\android\app\src\debug\AndroidManifest.xml:6:5-162Warning:
application@android:usesCleartextTrafficwastaggedatAndroidManifest.xml:6toreplaceotherdeclarationsbutnootherdeclarationpresentC:\path\to\project\android\app\src\debug\AndroidManifest.xmlWarning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authoritieswastaggedatAndroidManifest.xml:0toreplaceotherdeclarationsbutnootherdeclarationpresent>Task :react-native-worklets-core:compileDebugJavaWithJavacNote: SomeinputfilesuseoroverrideadeprecatedAPI.Note: Recompilewith-Xlint:deprecationfordetails.>Task :react-native-vision-camera:configureCMakeDebug[x86_64]C/C++: VisionCamera: FrameProcessors: ON!C/C++: VisionCamera: Linkingreact-native-worklets...
>Task :react-native-vision-camera:compileDebugKotlinw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:71:42'get(Int, Int): CamcorderProfile!'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:96:42'get(Int, Int): CamcorderProfile!'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:121:42'get(Int, Int): CamcorderProfile!'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessors/VisionCameraProxy.kt:33:56'getter for jsCallInvokerHolder: CallInvokerHolder'isdeprecated.UseReactContext.getJSCallInvokerHolderinsteadw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:4:34'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:31:5'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:32:45'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:33:47'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:34:43'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:35:43'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:36:43'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:37:41'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:38:47'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:39:50'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:40:50'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:41:60'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:42:61'MapBuilder'isdeprecated.DeprecatedinJavaw: file:///C:/path/to/project/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewManager.kt:43:47'MapBuilder'isdeprecated.DeprecatedinJava
Thanks for detailed report. It seems you are getting deprecated API warnings during your build, which is not uncommon when using libraries that haven’t updated yet.
To address your AndroidManifest issue, it's a recommendation to remove the deprecated package="com.worklets" from your AndroidManifest.xml file. As for ze deprecation warnings from Java, make sure to check if updates are available for the libraries mentioned in the logs. If you find issues with specific libraries, you might also consider reaching out to ze maintainers.
If this doesn't resolve your problem, or you notice any runtime issues, please provide additional logs from adb logcat so mrousavy can investigate further. Also, if you find ze project helpful, consider sponsoring mrousavy to support ongoing development!
Keep us updated!
Note: If you think I made a mistake, please ping @mrousavy to take a look.
How were you trying to build the app?
I am building the app using the Expo CLI with the
expo run:android
. The build completes successfully, but the following warnings are displayed. I can build example apps as well as my project app with the same warnings. Seems like worklets cause the warnings.Full build logs
Project dependencies
VisionCamera Version
4.6.3
Target platforms
Android
Operating system
Windows
Can you build the VisionCamera Example app?
Yes, I can successfully build the Example app here
Additional information
The text was updated successfully, but these errors were encountered: