I was trying to export an old version of the android app from GitHub into the android studio, the project was not showing any issues in compilation however, as i tried to run the project, I encountered a run time error in the android studio log showed there is a Gradle sync error with message “No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi”. For a solution, I search StackOverflow and found this theard .

defining the ndk path in “Gradle Scripts/local.properties”

ndk.dir=/home/user/Android/Sdk/ndk/21.0.6113669

Then I rerun the project, and it worked.