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


#1

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.


Can't build android project after detaching from Expo SDK 28.0.0
#2

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


Problem with detaching
closed #3

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