Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find any version that matches com.facebook.react:react-native:0.12.+. #11

Open
kaangrbz opened this issue Jul 8, 2024 · 0 comments

Comments

@kaangrbz
Copy link

kaangrbz commented Jul 8, 2024

Versions

Node: v14.21.3
Yarn: 1.22.22
react-native: 0.67.4
react: ^17.0.2
react-i18next: ^14.1.2

Running Code

$ react-native run-android

Output:

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1036 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...

Configure project :react-native-locale-detector
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
WARNING:: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :app:mergeDebugAssets FAILED

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.2/userguide/command_line_interface.html#sec:command_line_warnings
30 actionable tasks: 26 executed, 4 up-to-date

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugAssets'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find any version that matches com.facebook.react:react-native:0.12.+.
Versions that do not match: 0.67.4
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-native/maven-metadata.xml
- https://www.jitpack.io/com/facebook/react/react-native/maven-metadata.xml
Required by:
project :app > project :react-native-locale-detector

  • 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

BUİLD FAILED in 11s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugAssets'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find any version that matches com.facebook.react:react-native:0.12.+.
Versions that do not match: 0.67.4
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-native/maven-metadata.xml
- https://www.jitpack.io/com/facebook/react/react-native/maven-metadata.xml
Required by:
project :app > project :react-native-locale-detector

  • 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

BUİLD FAILED in 11s

at makeError (/Users/menduhcaylak/Desktop/furkan/wacon/node_modules/execa/index.js:174:9)
at /Users/menduhcaylak/Desktop/furkan/wacon/node_modules/execa/index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async runOnAllDevices (/Users/menduhcaylak/Desktop/furkan/wacon/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/menduhcaylak/Desktop/furkan/wacon/node_modules/@react-native-community/cli/build/index.js:192:9)

info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

What i have tried for solution:

First remove the yarn remove react-native-locale-detector after yarn android and after run yarn add react-native-locale-detector this works perfect.

My package.json:

{
  "name": "wacon",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
    "build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
    "sstart": "yarn remove react-native-locale-detector && yarn android && yarn add react-native-locale-detector"
  },
  "dependencies": {
    "@miblanchard/react-native-slider": "^2.1.0",
    "@react-native-async-storage/async-storage": "^1.17.0",
    "@react-navigation/bottom-tabs": "^6.2.0",
    "@react-navigation/native": "^6.0.10",
    "@react-navigation/native-stack": "^6.5.2",
    "axios": "^1.7.2",
    "convert-string": "^0.1.0",
    "css-to-react-native": "^3.0.0",
    "i18next": "^23.11.5",
    "i18next-react-native-language-detector": "^1.0.2",
    "mobx": "^6.5.0",
    "mobx-react": "^7.3.0",
    "react": "^17.0.2",
    "react-i18next": "^14.1.2",
    "react-native": "0.67.4",
    "react-native-animated-nav-tab-bar": "^3.1.8",
    "react-native-ble-manager": "^8.0.2",
    "react-native-country-flag": "^2.0.2",
    "react-native-dropdownalert": "^4.5.1",
    "react-native-floating-action": "^1.22.0",
    "react-native-gesture-handler": "2.3.2",
    "react-native-locale-detector": "^1.0.1",
    "react-native-location": "^2.5.0",
    "react-native-paper": "^5.12.3",
    "react-native-paper-dates": "^0.8.7",
    "react-native-safe-area-context": "^4.2.1",
    "react-native-screens": "^3.13.1",
    "react-native-scroll-wheel-picker": "^0.0.2",
    "react-native-switch-selector": "^2.2.1",
    "react-native-vector-icons": "^9.1.0",
    "react-native-view-slider": "^1.1.1",
    "react-native-wheel-scrollview-picker": "^2.0.4",
    "styled-components": "^5.3.5"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/plugin-proposal-decorators": "^7.17.8",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "@types/convert-string": "^0.1.1",
    "@types/jest": "^26.0.23",
    "@types/react-native": "^0.66.15",
    "@types/react-native-vector-icons": "^6.4.10",
    "@types/react-test-renderer": "^17.0.1",
    "@typescript-eslint/eslint-plugin": "^5.7.0",
    "@typescript-eslint/parser": "^5.7.0",
    "babel-jest": "^26.6.3",
    "eslint": "^7.14.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.66.2",
    "react-test-renderer": "17.0.2",
    "typescript": "^4.4.4"
  },
  "resolutions": {
    "@types/react": "^17"
  },
  "jest": {
    "preset": "react-native",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant