'Autolinking is not set up in `settings.gradle`: expo modules won't be autolinked

I am designing a React Native application and I would like to create an Apk to test the app. But when I click on "Sync project with Gradle Files" on Android Studio, I get the following error:

Autolinking is not set up in `settings.gradle`: expo modules won't be autolinked.

I don't understand what the problem is or rather how to configure Autolinking.



Solution 1:[1]

Add the following to settings.gradle see https://docs.expo.dev/bare/installing-expo-modules/

apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle") useExpoModules()

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Joshua Shovan