I am working with react native, and I updated some packages. After that, Android Studio noticed me that I needed to update the Build Tools to sync the project. But I can't modify it, my files are in the read-only mode for no reason, and I do not know how to change that. Here what I see:
Gradle Sync Issues
Error: The SDK Build Tools revision (23.0.1) is too low for project
':app'. Minimum required is 25.0.0 Update Build Tools version and sync
IncorrectOperationException: Cannot modify a read-only file 'path/android/app/build.gradle'.
Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly.
File >> Invalidate Caches / Restart >> close Android Studio >> Restart Android Studio (which automatically redownload gradle tools) >> Gradle Build
File >> Settings >> Gradle >> check Offline work >> close Project >> re-open Project >> Gradle Build
Fille >> Settings >> Gradle >> check Use local gradle distribution >> set Gradle home path >> Gradle build
I went to the android/app folder of the project and I used the following command:
chmod 777 build.gradle
It removed the read-only mode by giving me all the rights.