create react native music player that plays files form assets/audio/one.mp3 here is my…
- User
create react native music player that plays files form assets/audio/one.mp3
here is my package file
{ "name": "musicplayer", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "react": "18.3.1", "react-native": "0.77.1", "react-native-vector-icons": "^10.2.0" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@babel/runtime": "^7.25.0", "@react-native-community/cli": "15.0.1", "@react-native-community/cli-platform-android": "15.0.1", "@react-native-community/cli-platform-ios": "15.0.1", "@react-native/babel-preset": "0.77.1", "@react-native/eslint-config": "0.77.1", "@react-native/metro-config": "0.77.1", "@react-native/typescript-config": "0.77.1", "@types/jest": "^29.5.13", "@types/react": "^18.2.6", "@types/react-native-vector-icons": "^6.4.18", "@types/react-test-renderer": "^18.0.0", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.3.1", "typescript": "5.0.4" }, "engines": { "node": ">=18" } }
- Assistant
- User
how to downgrade this react native version to "react": "18.2.0", "react-native": "0.71.6",
{ "name": "musicplayer", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "react": "18.3.1", "react-native": "0.77.1", "react-native-vector-icons": "^10.2.0" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@babel/runtime": "^7.25.0", "@react-native-community/cli": "15.0.1", "@react-native-community/cli-platform-android": "15.0.1", "@react-native-community/cli-platform-ios": "15.0.1", "@react-native/babel-preset": "0.77.1", "@react-native/eslint-config": "0.77.1", "@react-native/metro-config": "0.77.1", "@react-native/typescript-config": "0.77.1", "@types/jest": "^29.5.13", "@types/react": "^18.2.6", "@types/react-native-vector-icons": "^6.4.18", "@types/react-test-renderer": "^18.0.0", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.3.1", "typescript": "5.0.4" }, "engines": { "node": ">=18" } }
- Assistant
- User
vishalbhojane@vishal-bhojane musicplayer % npm run android
musicplayer@0.0.1 android react-native run-android
info JS server already running. info Installing the app...
FAILURE: Build failed with an exception.
-
Where: Settings file '/Users/vishalbhojane/Documents/MyCode/musicplayer/android/settings.gradle' line: 2
-
- Assistant
- User
BUILD FAILED in 1s error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Could not read workspace metadata from /Users/vishalbhojane/.gradle/caches/8.10.2/groovy-dsl/93dc6b4d05d9c5e7c77b3031b7d10b4c/metadata.bin
/Users/vishalbhojane/.gradle/caches/8.10.2/groovy-dsl/93dc6b4d05d9c5e7c77b3031b7d10b4c/metadata.bin (No such file or directory) * 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. BUILD FAILED in 1s. info Run CLI with --verbose flag for more details. vishalbhojane@vishal-bhojane rnbasics %
- Assistant