i solved it by these steps :
First go to android studio and check your cmake version and make sure you have latest version of cmake if not install it
then go to your project and fo to android folder and make **local.properties** file on it.
in **local.properties** give cmake directory on it in my case i install 4.0.2 version so i put this
`cmake.dir=C:\\Users\\DELL\\AppData\\Local\\Android\\Sdk\\cmake\\4.0.2`
and then clean build folder
`cd android`
`gradlew clean`
`cd ..`
`npx react-native run-android`
i solved it by these steps :
First go to android studio and check your cmake version and make sure you have latest version of cmake if not install it
then go to your project and fo to android folder and make **local.properties** file on it.
in **local.properties** give cmake directory on it in my case i install 4.0.2 version so i put this
`cmake.dir=C:\\Users\\DELL\\AppData\\Local\\Android\\Sdk\\cmake\\4.0.2`
and then clean build folder
`cd android`
`gradlew clean`
`cd ..`
`npx react-native run-android`