从昨天起,我一直遇到这个问题,我正在工作的项目无法分离API级别升级。
所以,今天,我创建了一个新项目,但也无法分离。它只是退出Android代码下载。这是堆栈跟踪:
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.
有人建议可能清理maven缓存,但我不知道如何?
这是实际的项目堆栈:
./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)