ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.41k stars 164 forks source link

Cant use takeScreenshot (Android 13 or later) #309

Open vueDev-k opened 1 month ago

vueDev-k commented 1 month ago

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Windows 10 pro
  2. Device OS & Version: Android 14
  3. Version: ViroReact version 2.41.6, react native version 0.74.5
  4. Device(s): Galaxy Z Fold 5, Redmi note 10, Foco F1

Description

I am using ViroARSceneNavigator and the takeScreenshot function. However, this function requests the WRITE_EXTERNAL_STORAGE permission, which is no longer available on devices running Android 13 or later. So, I want to clone the project and build a local module. I modified the ARSceneNavigatorModule.java file and ran the command npm build, but I encountered the following error: "Could not find com.facebook.react:react-android:. Required by: project viro_bridge."