5

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.

Bryan
  • 51
  • 1
  • 2

1 Answers1

4

Add the following to settings.gradle (Reference)

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