skip to Main Content

this error occurs when I running the newly created plain react native app:

npx @react-native-community/cli@latest init <Project Name>

after I ensure with

npx react-native doctor

to ensure all the requirements has been fullfilled (this requirement is fullfilled for mine)

Lastly, I trying to run using

npx react-native run-android

this will through the error of

id: com.facebook.react.settings

I tried to deleting the folder of android.gradle and again run the server with cache clean

npm start --reset-cache 

again the same error comes

Does anyone having any solutions or suggestions?

2

Answers


  1. Chosen as BEST ANSWER

    I fixed that issue com.facebook.react.settings and Task :app:configureCMakeDebug[arm64-v8a] FAILED #37124

    run the following command after creating the React-Native project :

    npx react-native doctor
    

    to make sure all the requirements should be satisfied

    1

    start the metro server using the command:

    2

    from here i got the com.facebook.react.settings error to fix:

    1. Inside your project delete the .gradle file under the android folder
    2. Clearing the cache before starting the server

    using

    npm start --reset-cache
    

    or

    yarn start --reset-cache
    

    check if the build folder is generated under the android folder

    3

    To fix Cmake Error - task ':app:configureCMakeDebug[arm64-v8a]':

    4

    inside the gradle.properties file to change the value of

    newArchEnabled=true to newArchEnabled=false

    Finally, run

    npx react-native run-android
    

    5


  2. Please try with bellow way.

    Delete your node_module folder and try with npm install and npx react-native run-android.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search