Could not Compile Settings File project/android/settings.gradle

Could not Compile Settings File project/android/settings.gradle

While building and installing the app you can face a compilation app that is  Could not Compile Settings File in project/android/settings.gradle. This problem often comes when you link a project dependency in the windows machine and try to run it on Emulator/Device (especially after linking react-native-gesture-handler).

Problem:

After linking any dependency when we build the project:

Build failed with an exception Could not Compile Settings File ‘project/android/settings.gradle’.

Solution:

To solve this problem you need to open the project/android/settings.gradle file and have to replace the backslash(\) with the frontslash(/) as windows directory structure do not support the backslash(\).

Before Changes:

After Changes:

This is how you can solve the problem “Could not Compile Settings File project/android/settings.gradle”. If you have any doubt or you want to share something about the topic you can comment below or contact us here.

Hope you liked it. 🙂

How useful was this post?

Click on a star to rate us!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

About React will use the information you provide on this form to be in touch with you and to provide updates and marketing.