EXP detach android fails ??

Since yesterday, I have been having this issue, where the project i was working couldn’t detach for API level upgrade.

So, Today, I created a fresh project and wasn’t able to detach as well. It just exits at android code download. Here is the stack trace :

fldock:novak oflcad$ exp detach
Validating project manifest...
You have not specified a custom scheme for deep linking. A default value of exp1ae4c6b97c6448a0a055610e69b985f0 will be used. You can change this later by following the instructions in this guide: https://docs.expo.io/versions/latest/workflow/linking
You'll need to specify an iOS bundle identifier. See: https://docs.expo.io/versions/latest/guides/configuration.html#bundleidentifier
? What would you like your iOS bundle identifier to be? hasana
Creating ExpoKit workspace at /Users/oflcad/Documents/reactNativeProjects/novak/ios...
Downloading iOS code...
Moving iOS project files...
Attempting to create project directory...
project dir: /Users/oflcad/Documents/reactNativeProjects/novak/ios
Created project directory! Copying files:
Naming iOS project...
Configuring iOS dependencies...
Configuring iOS project...
Modifying NSBundle configuration at /Users/oflcad/Documents/reactNativeProjects/novak/ios/novak/Supporting...
We added some permissions keys to `Info.plist` in your detached iOS project:
  NSCalendarsUsageDescription
  NSMotionUsageDescription
  NSCameraUsageDescription
  NSMicrophoneUsageDescription
  NSRemindersUsageDescription
  NSPhotoLibraryAddUsageDescription
  NSContactsUsageDescription
  NSPhotoLibraryUsageDescription
  NSLocationWhenInUseUsageDescription
You may want to revise them to include language appropriate to your project. You can also remove them if your app will never use the corresponding API. See the Apple docs for these keys.
Using shell config: { manifestUrl: 'exp://exp.host/@oflcad/novak',
  isShell: true,
  releaseChannel: 'default',
  isManifestVerificationBypassed: true }
Your iOS ExpoKit project will not contain an .entitlements file by default. If you need specific Apple entitlements, enable them manually via Xcode or the Apple Developer website.
Configuring iOS Launch Screen...
Cleaning up iOS...
iOS detach is complete!
You'll need to specify an Android package name. See: https://docs.expo.io/versions/latest/guides/configuration.html#package
? What would you like your Android package name to be? com.oflarcade.hasana
Moving Android project files...
Downloading Android code...
./maven/com/facebook/react/react-native/27.0.0/react-native-27.0.0-javadoc.jar: (Empty error message)
tar: Error exit delayed from previous errors.
Process exited with non-zero code: 1
11:52:00 [exp] zlib: unexpected end of file
11:52:00 [exp] Set EXPO_DEBUG=true in your env to view the stack trace.

Here is the stack trace of the project i am working on :

./app/src/main/assets/fonts/EmojiOne.ttf: (Empty error message)
tar: Error exit delayed from previous errors.
Process exited with non-zero code: 1
12:58:40 [exp] zlib: unexpected end of file
12:58:40 [exp] ZlibError: zlib: unexpected end of file
    at Zlib.(anonymous function).onerror (/usr/local/lib/node_modules/exp/node_modules/minizlib/index.js:131:21)
    at Unzip.write (/usr/local/lib/node_modules/exp/node_modules/minizlib/index.js:255:31)
    at Unzip.flush (/usr/local/lib/node_modules/exp/node_modules/minizlib/index.js:222:10)
    at Unzip.end (/usr/local/lib/node_modules/exp/node_modules/minizlib/index.js:229:10)
    at Unpack.end (/usr/local/lib/node_modules/exp/node_modules/tar/lib/parse.js:415:21)
    at Yallist.pipes.forEach.p (/usr/local/lib/node_modules/exp/node_modules/minipass/index.js:290:18)
    at Yallist.forEach (/usr/local/lib/node_modules/exp/node_modules/minipass/node_modules/yallist/yallist.js:154:8)
    at ReadStream.emit (/usr/local/lib/node_modules/exp/node_modules/minipass/index.js:287:18)
    at ReadStream.emit (/usr/local/lib/node_modules/exp/node_modules/fs-minipass/index.js:153:22)
    at ReadStream.[maybeEmitEnd] (/usr/local/lib/node_modules/exp/node_modules/minipass/index.js:257:12)

Hi @olfcad - this is a weird error :thinking: have you tried clearing out your maven caches (~/.m2/repository on mac/linux, C:\Users\user\.m2\repository on windows)? If that doesn’t work, which OS are you running this on, and which version of exp do you have?

1 Like

hi @esamelson thanks for pointing out the path for maven caches.
After clearing the detach went through :slight_smile: million times thank you :slight_smile:!!!

1 Like

the build of android ended with zero error after upgrading tragetSdkVersion to 26 instead of 25,
and keeping expo open running the app from android studio results in this ???

Did anybody encountered this error before ?

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