Problem with detached app. ':expoview' could not be found

Hello, I have an app that works through Expo. I detached it from the Expo but now I can not run it on the emulator.

First I run “exp start” and then “react-native run-android”

FAILURE: Build failed with an exception.

* Where:
Build file '/***/android/app/build.gradle' line: 176

* What went wrong:
A problem occurred evaluating project ':app'.
> Project with path ':expoview' could not be found in project ':app'.

line 176:
compile project(path: ‘:expoview’)

The same error appears in the Android studio.

U need to change the lines that says /* REMOVED_WHEN_DISTRIBUTING_FROM_HERE */

/* ADD THIS */
  implementation('host.exp.exponent:expoview:SDKVERSION@aar') {
    transitive = true
    exclude group: 'com.squareup.okhttp3', module: 'okhttp'
    exclude group: 'com.squareup.okhttp3', module: 'okhttp-urlconnection'
  }
/* ADD THIS */
  
  /* REMOVED_WHEN_DISTRIBUTING_FROM_HERE
  implementation(project(path: ':expoview')) {
    // Excluding okhttp3 included by expo-file-system
    exclude group: 'com.squareup.okhttp3', module: 'okhttp'
    exclude group: 'com.squareup.okhttp3', module: 'okhttp-urlconnection'
  }
  REMOVED_WHEN_DISTRIBUTING_TO_HERE */

I hope i’ve helped you @smartcontrol

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.