mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.52k stars 1.09k forks source link

🔧 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change. #2904

Closed ZhenQian-keystone closed 5 months ago

ZhenQian-keystone commented 5 months ago

How were you trying to build the app?

i am trying to build android, i am not use camera v4 , but i still meet same this error. this error confuse me a lot of time , who can save my life.

this is error

> Task :react-native-vision-camera:compileReleaseKotlin FAILED
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:31:79 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:36:19 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:36:47 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:72:73 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.

i use camera v3

    "react-native-vision-camera": "^3.3.1",

here is my computer env

System:
    OS: macOS 14.4.1
    CPU: (12) arm64 Apple M2 Pro
    Memory: 75.92 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.2 - /usr/local/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.5.0 - /usr/local/bin/npm
    Watchman: 2024.05.06.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 2023.3 AI-233.14808.21.2331.11709847
    Xcode: 15.4/15F31d - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.23 - /Users/jianjianjianjian/.jenv/shims/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.11 => 0.71.11 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Full build logs

> Task :react-native-safe-area-context:compileReleaseKotlin
w: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt:50:23 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java

> Task :react-native-vision-camera:compileReleaseKotlin FAILED
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:31:79 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:36:19 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:36:47 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.
e: file:///Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt:72:73 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change.

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[arm64-v8a]
C/C++: CMake Warning at /Users/jianjianjianjian/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/jianjianjianjian/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   /Users/jianjianjianjian/Library/Android/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
C/C++:   CMakeLists.txt:1 (project)
C/C++: CMake Warning at /Users/jianjianjianjian/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/jianjianjianjian/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   /Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/.cxx/RelWithDebInfo/3x204t5y/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++:   /Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/.cxx/RelWithDebInfo/3x204t5y/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: CMake Warning at /Users/jianjianjianjian/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/jianjianjianjian/Library/Android/sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   /Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/.cxx/RelWithDebInfo/3x204t5y/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
C/C++:   /Users/jianjianjianjian/Documents/fuck_rn_fuck_rn/keystone-hot/node_modules/react-native-vision-camera/android/.cxx/RelWithDebInfo/3x204t5y/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: VisionCamera: Frame Processors: OFF!

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-vision-camera:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 16s
742 actionable tasks: 611 executed, 131 up-to-date
error Command failed with exit code 1.

Project dependencies

"dependencies": {
    "@cobo/apm-rum-react-native": "^0.6.0",
    "@cvbb/bc-ur": "^0.2.5",
    "@cvbb/qr-protocol": "^2.0.3",
    "@dooboo-ui/native-switch-toggle": "^0.4.0",
    "@ethereumjs/common": "^2.6.5",
    "@ethereumjs/tx": "^3.5.2",
    "@keystonehq/bc-ur-registry-eth": "^0.14.1-alpha.0",
    "@miblanchard/react-native-slider": "^2.1.0",
    "@ngraveio/bc-ur": "^1.1.6",
    "@polkadot/util-crypto": "^3.4.1",
    "@react-native-async-storage/async-storage": "^1.15.2",
    "@react-native-clipboard/clipboard": "^1.7.0",
    "@react-native-firebase/analytics": "^16.4.6",
    "@react-native-firebase/app": "^16.4.6",
    "@react-native-firebase/crashlytics": "^16.4.6",
    "@react-native-firebase/perf": "^16.4.6",
    "@react-navigation/bottom-tabs": "^6.4.1",
    "@react-navigation/core": "^6.4.1",
    "@react-navigation/native": "^6.0.14",
    "@react-navigation/stack": "^6.3.5",
    "@sentry/react-native": "^2.4.3",
    "@tradle/react-native-http": "^2.0.1",
    "@types/bs58check": "^2.1.0",
    "@unstoppabledomains/resolution": "^1.6.0",
    "assert": "^1.5.0",
    "axios": "0.19.2",
    "bignumber.js": "^9.0.0",
    "bip39": "^3.0.2",
    "browserify-zlib": "^0.2.0",
    "bs58check": "^2.1.2",
    "buffer": "^5.6.0",
    "coinselect": "^3.1.11",
    "coinstring": "^2.3.0",
    "conflux-address-js": "^1.0.4",
    "console-browserify": "^1.1.0",
    "constants-browserify": "^1.0.0",
    "create-hmac": "^1.1.7",
    "crypto-coin-kit": "https://github.com/KeystoneHQ/crypto-coin-kit/releases/download/v0.4.4/release.tgz",
    "crypto-js": "^3.1.9-1",
    "dns.js": "^1.0.1",
    "domain-browser": "^1.2.0",
    "eosjs-ecc": "^4.0.7",
    "ethers": "^5.0.14",
    "events": "^1.1.1",
    "fast-json-patch": "^3.0.0-1",
    "hdkey": "0.8.0",
    "https-browserify": "0.0.1",
    "jsc-android": "^250230.2.1",
    "lodash": "^4.17.15",
    "mobx": "^6.1.8",
    "mobx-react-lite": "^3.2.0",
    "mobx-state-tree": "^5.0.1",
    "moment": "^2.24.0",
    "path-browserify": "0.0.0",
    "process": "^0.11.10",
    "punycode": "^1.4.1",
    "querystring": "^0.2.0",
    "querystring-es3": "^0.2.1",
    "ramda": "^0.26.1",
    "react": "18.2.0",
    "react-native": "0.71.11",
    "react-native-crypto": "^2.2.0",
    "react-native-device-info": "^5.5.3",
    "react-native-fast-image": "^7.0.2",
    "react-native-fingerprint-scanner": "^6.0.0",
    "react-native-gesture-handler": "^1.5.6",
    "react-native-keychain": "^4.0.1",
    "react-native-level-fs": "^3.0.0",
    "react-native-linear-gradient": "^2.6.2",
    "react-native-markdown-display": "^6.1.6",
    "react-native-modal": "^13.0.1",
    "react-native-pager-view": "^6.1.1",
    "react-native-permissions": "^2.1.2",
    "react-native-progress": "^5.0.0",
    "react-native-qrcode-svg": "^6.0.6",
    "react-native-randombytes": "^3.5.3",
    "react-native-reanimated": "^2.17.0",
    "react-native-restart": "^0.0.22",
    "react-native-safe-area-context": "^4.4.1",
    "react-native-vision-camera": "^3.3.1",
    "react-native-screens": "^2.16.1",
    "react-native-splash-screen": "^3.2.0",
    "react-native-svg": "^9.9.9",
    "react-native-swipe-list-view": "^3.2.9",
    "react-native-tab-view": "^3.3.0",
    "react-native-toast-message": "^2.1.5",
    "react-native-touch-id": "^4.4.1",
    "react-native-video": "^5.2.1",
    "react-native-webview": "^11.24.0",
    "readable-stream": "^1.0.33",
    "rlp": "^3.0.0",
    "rxjs": "^6.5.3",
    "rxjs-compat": "^6.5.3",
    "rxjs-hooks": "^0.5.1",
    "secp256k1": "^3.7.1",
    "stream-browserify": "^1.0.0",
    "text-encoding-polyfill": "^0.6.7",
    "timers-browserify": "^1.4.2",
    "tty-browserify": "0.0.0",
    "url": "^0.10.3",
    "util": "^0.10.4",
    "uuid": "^9.0.0",
    "vm-browserify": "0.0.4",
    "wif": "^2.0.6"
  },

VisionCamera Version

react-native-vision-camera@^3.3.1: version "3.9.2"

Target platforms

Android

Operating system

MacOS

Can you build the VisionCamera Example app?

Yes, I can successfully build the Example app here

Additional information

RiusmaX commented 5 months ago

Same here with react-native-vision-camera v4.0.5 and RN 0.74.0

ZhenQian-keystone commented 5 months ago

Same here with react-native-vision-camera v4.0.5 and RN 0.74.0

yes, so confused , dont know how to solve that

Ashikes commented 5 months ago

Same here with react-native-vision-camera v4.0.5 and RN 0.74.0

Try downgrading the RN version to 0.73

ZhenQian-keystone commented 5 months ago

Same here with react-native-vision-camera v4.0.5 and RN 0.74.0

Try downgrading the RN version to 0.73

but my rn version is 0.71.11, meet same issue, do you konw how to fix it

ZhenQian-keystone commented 5 months ago

why "react-native-vision-camera": "^3.3.1" use two versions of react-native ?


> Configure project :react-native-vision-camera

[VisionCamera] react-native-worklets-core not found, Frame Processors disabled!

WARNING:The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported 
version (30.0.3) for Android Gradle Plugin 7.3.1.

Android SDK Build Tools 30.0.3 will be used.

To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

WARNING:The specified Android SDK Build Tools version (29.0.2) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1.

Android SDK Build Tools 30.0.3 will be used.

To suppress this warning, remove "buildToolsVersion '29.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

WARNING:The specified Android SDK Build Tools version (26.0.3) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1.

Android SDK Build Tools 30.0.3 will be used.

To suppress this warning, remove "buildToolsVersion '26.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

WARNING:The specified Android SDK Build Tools version (26.0.2) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1.

Android SDK Build Tools 30.0.3 will be used.

To suppress this warning, remove "buildToolsVersion '26.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

WARNING:The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1.

Android SDK Build Tools 30.0.3 will be used.

To suppress this warning, remove "buildToolsVersion '27.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

<-------------> 0% EXECUTING [5m 49s]

> Resolve files of :app:releaseRuntimeClasspath > react-android-0.74.1-release.aar > 20.5 MiB/143.7 MiB downloaded

> IDLE

> IDLE

> Resolve files of :app:releaseRuntimeClasspath

> IDLE

> Resolve files of :app:releaseRuntimeClasspath > react-native-0.71.0-rc.0-release.aar > 16.2 MiB/70.2 MiB downloaded

> Resolve files of :app:releaseRuntimeClasspath

> Resolve files of :app:releaseRuntimeClasspath

> Resolve files of :app:releaseRuntimeClasspath

> Resolve files of :app:releaseRuntimeClasspath
ZhenQian-keystone commented 5 months ago

here is my gradle version and kotlin version

------------------------------------------------------------
Gradle 7.5.1
------------------------------------------------------------

Build time:   2022-08-05 21:17:56 UTC
Revision:     d1daa0cbf1a0103000b71484e1dbfe096e095918

Kotlin:       1.6.21
Groovy:       3.0.10
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          1.8.0_202 (Oracle Corporation 25.202-b08)
OS:           Mac OS X 10.16 x86_64
1500256797 commented 5 months ago

First, let's analyze the issue.

Although your react-native version in package.json is less than 0.74, and your react-native-vision-camera is ^3.3.1(the version in yarn.lock is 3.9.2), everything seems normal and there shouldn't be any problems. However, the issue still occurs.

This is because, before react-native-vision-camera v3.3.1, the android/build.gradle module in the project used the following syntax:

implementation 'com.facebook.react:react-android:+'

https://github.com/mrousavy/react-native-vision-camera/blob/37507345786b3b0f0b63831d499f6de3ba587190/package/android/build.gradle#L145

This line means that when building the camera package, if you don't explicitly specify the react-android version in the build.gradle file of your react-native project, Gradle will download the latest version 0.74.1 from the Maven repository at https://mvnrepository.com/artifact/com.facebook.react/react-android. This is the reason for the bug.

The solution is to use the "force" keyword to enforce the use of react-android version 0.71.11:

allprojects {
  configurations.all {
    resolutionStrategy {
    force "com.facebook.react:react-android:0.71.11"
    }
  }
}

However, sometimes the problem may not be resolved with just this step. If you are maintaining an older project that uses both react-native-vision-camera and other react-native libraries like react-native-webview, you may encounter "duplicate class" issues.

For example:

https://github.com/react-native-webview/react-native-webview/blob/master/android/build.gradle#L107

implementation 'com.facebook.react:react-native:+'This will download the latest version 0.71.0-rc.0 dependency from https://mvnrepository.com/artifact/com.facebook.react/react-native.

If your project has a similar situation, it will be difficult to compile because although your project references react-native and react-android, which seem unrelated, they actually have the same package names and class names. Hence, the compiler will fail.

To solve this problem, you need to change all occurrences of implementation 'com.facebook.react:react-native:+' to implementation 'com.facebook.react:react-android:+' to resolve the package and class name conflicts.

Usually, we don't need to manually adjust the build.gradle file of each package. We can add the following code at the end of the android/build.gradle file in the root directory:

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
            details.useTarget group: details.requested.group, name: 'react-android', version: '0.71.11'
            }
        }
    }
}

This code will change all occurrences of implementation 'com.facebook.react:react-native:+'to implementation 'com.facebook.react:react-android:0.71.11'by renaming, resolving the package and class name conflicts.

ZhenQian-keystone commented 5 months ago

First, let's analyze the issue.

Although your react-native version in package.json is less than 0.74, and your react-native-vision-camera is ^3.3.1(the version in yarn.lock is 3.9.2), everything seems normal and there shouldn't be any problems. However, the issue still occurs.

This is because, before react-native-vision-camera v3.3.1, the android/build.gradle module in the project used the following syntax:

implementation 'com.facebook.react:react-android:+'

https://github.com/mrousavy/react-native-vision-camera/blob/37507345786b3b0f0b63831d499f6de3ba587190/package/android/build.gradle#L145

This line means that when building the camera package, if you don't explicitly specify the react-android version in the build.gradle file of your react-native project, Gradle will download the latest version 0.74.1 from the Maven repository at https://mvnrepository.com/artifact/com.facebook.react/react-android. This is the reason for the bug.

The solution is to use the "force" keyword to enforce the use of react-android version 0.71.11:

allprojects {
  configurations.all {
    resolutionStrategy {
    force "com.facebook.react:react-android:0.71.11"
    }
  }
}

However, sometimes the problem may not be resolved with just this step. If you are maintaining an older project that uses both react-native-vision-camera and other react-native libraries like react-native-webview, you may encounter "duplicate class" issues.

For example:

https://github.com/react-native-webview/react-native-webview/blob/master/android/build.gradle#L107

implementation 'com.facebook.react:react-native:+'This will download the latest version 0.71.0-rc.0 dependency from https://mvnrepository.com/artifact/com.facebook.react/react-native.

If your project has a similar situation, it will be difficult to compile because although your project references react-native and react-android, which seem unrelated, they actually have the same package names and class names. Hence, the compiler will fail.

To solve this problem, you need to change all occurrences of implementation 'com.facebook.react:react-native:+' to implementation 'com.facebook.react:react-android:+' to resolve the package and class name conflicts.

Usually, we don't need to manually adjust the build.gradle file of each package. We can add the following code at the end of the android/build.gradle file in the root directory:

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
            details.useTarget group: details.requested.group, name: 'react-android', version: '0.71.11'
            }
        }
    }
}

This code will change all occurrences of implementation 'com.facebook.react:react-native:+'to implementation 'com.facebook.react:react-android:0.71.11'by renaming, resolving the package and class name conflicts.

thanks , it works for me, you save me life

ZhenQian-keystone commented 5 months ago

Q636$AXS`6J 3$LJ%X FIQF my rn 0.74.1

Try downgrading the RN version

mrousavy commented 5 months ago

VisionCamera does not support RN 0.74 yet. See this issue for updates: https://github.com/mrousavy/react-native-vision-camera/issues/2614 and consider sponsoring if you need this sooner.

AbdulrehmanTs commented 1 month ago

Hey, what worked for me was:

  1. Free up space from physical Android device/emulator.
  2. clear gradle cache
    cd android
    ./gradlew clean

!Reason of error: "Requested internal only, but not enough space": This indicates that the device or emulator you are using to run your React Native project does not have enough internal storage space to install the APK.