` An exception occurred at the end. Error message: groovy.json.JsonException
P粉132730839
P粉132730839 2023-12-24 23:52:16
0
1
701

describe I wanted to continue finishing my React Native Android app before, but after running it, I never got this error:

Error details Failed: The build failed with an exception.

  • Place: Script 'D:KonselingTelyunode_modules@react-native-communitycli-platform-androidnative_modules.gradle' Line: 450

  • What went wrong: There was a problem evaluating the script.

Call [node, D:KonselingTelyunode_modules@react-native-communityclibuildbin.js, config] Ended due to exception. Error message: groovy.json.JsonException: The current character cannot be determined, it is not a string, number, array, or object

The currently read character is 'i', and the int value is 105 The current character cannot be determined; it is not a string, number, array, or object Line number 1 Index number 0 info Run the CLI with the --verbose flag to get more details. ^. Output: info Run the CLI with the --verbose flag to get more details.

  • try:

Run with the --stacktrace option to get a stack trace. Run with the --info or --debug option for more log output. Run with --scan to get complete insights.

  • Visit https://help.gradle.org for more help

Build failed within 3m 24s

Error The application cannot be installed. Make sure you have your Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

Failed: The build failed with an exception.

  • Place: Script 'D:KonselingTelyunode_modules@react-native-communitycli-platform-androidnative_modules.gradle' Line: 450

  • What went wrong: There was a problem evaluating the script.

Call [node, D:KonselingTelyunode_modules@react-native-communityclibuildbin.js, config] Ended due to exception. Error message: groovy.json.JsonException: The current character cannot be determined, it is not a string, number, array, or object

The currently read character is 'i', and the int value is 105 The current character cannot be determined; it is not a string, number, array, or object Line number 1 Index number 0 info Run the CLI with the --verbose flag to get more details. ^. Output: info Run the CLI with the --verbose flag to get more details.

  • try:

Run with the --stacktrace option to get a stack trace. Run with the --info or --debug option for more log output. Run with --scan to get complete insights.

  • Visit https://help.gradle.org for more help

Build failed within 3m 24s

at makeError (D:KonselingTelyunode_modules@react-native-communitycli-platform-androidnode_modulesexecaindex.js:174:9)
at D:KonselingTelyunode_modules@react-native-communitycli-platform-androidnode_modulesexecaindex.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (D:KonselingTelyunode_modules@react-native-communitycli-platform-androidbuildcommandsrunAndroidrunOnAllDevices.js:109:5)
at async Command.handleAction (D:KonselingTelyunode_modules@react-native-communityclibuildindex.js:142:9)

info Run the CLI with the --verbose flag to get more details.

  • Reflect native information

D:KonselingTelyu>react-native information info Getting system and library information... (node:4328) warning: accessing non-existent property 'padLevels' exported by module within circular dependency (Use node --trace-warnings ... to display where the warnings were created) system: Operating system: Windows 10 10.0.19045 CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz Memory: 6.69 GB / 11.90 GB binary file: Node: 18.12.1 - C:Program Filesnodejsnode.EXE yarn: not found npm: 9.7.2 - C:Program Filesnodejsnpm.CMD Watchmen: not found Software Development Kit: Android SDK: API levels: 28, 30, 31, 33 Build tools: 28.0.3, 30.0.2, 30.0.3, 31.0.0 System Image: android-28 | Google API Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom Android NDK: not found Windows SDK: not found Integrated Development Environment: Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7678000 Visual Studio: not found language: Java: 11.0.17 npm package: @react-native-community/cli: not found Reaction: 18.1.0 => 18.1.0 react-native: 0.70.6 => 0.70.6 react native windows: not found npm global package: react-native: Not found

  • npm list @react-native-community/cli

Special consultation@0.0.1 D:Special consultation --react-native@0.70.6--@react-native-community/cli@9.3.2

  • package.json

{ "name": "KonselingTelyu", "version": "0.0.1", "private": true, "script":{ "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "yes", "lint": "eslint". }, "dependencies": { "@firebase/firestore": "^3.12.0", "@react-native-async-storage/async-storage": "^1.17.11", "@react-native-firebase/app": "^17.5.0", "@react-native-firebase/firestore": "^17.5.0", "@react-navigation/bottom-tabs": "^6.5.2", "@react-navigation/native": "^6.1.1", "@react-navigation/stack": "^6.3.10", "@reduxjs/toolkit": "^1.9.5", "firebase": "^9.16.0", "response": "18.1.0", "react-native": "0.70.6", "react-native-flash-message": "^0.4.0", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "^2.8.0", "react-native-image-picker": "^5.0.1", "react-native-restart": "^0.0.24", "react-native-safe-area-context": "^4.4.1", "react-native-screens": "^3.18.2", "react-native-svg": "^13.6.0", "react-native-svg-transformer": "^1.0.0", "react-native-update-cli": "^1.11.0", "react-native-version-check": "^3.4.7", "react-redux": "^8.1.1", "xlsx": "^0.18.5" }, "Development Dependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "babel-is": "^26.6.3", "eslint": "^7.32.0", "Yes": "^26.6.3", "metro-react-native-babel-preset": "0.72.3", "react-test-renderer": "18.1.0" }, "yes": { "Default": "React Native" } }

P粉132730839
P粉132730839

reply all(1)
P粉545682500

I also encountered this situation. To save time, I executed the following command:

rm -rf ./android/app/release

I am using Android Studio to generate the APK, so the directory mentioned is /android/app/release.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!