React Native Android 版本出现 Appcenter / Fastlane 错误
Appcenter / Fastlane error with React Native Android release
我最近将我的项目更新到最新版本的 Appcenter (v. 3.1.1),现在我的 Android CircleCI 管道失败了(但是将 iOS 应用发布到应用中心没有错误).
这是我通过 fastlane 运行 时得到的错误:
[21:29:32]: Upload finished
[21:29:32]: Waiting for release to be ready...
[21:30:36]: Error fetching release: A problem occured while extracting your app. (Correlation ID: fdb816e8-5539-45ae-bb9a-a877272ec67b)
+-------------------------------------+------------------------------------------------------------------------------------------------+
| Lane Context |
+-------------------------------------+------------------------------------------------------------------------------------------------+
| ENVIRONMENT | prod |
| PLATFORM_NAME | android |
| LANE_NAME | android appcenter |
| GRADLE_BUILD_TYPE | releaseStaging |
| GRADLE_ALL_APK_OUTPUT_PATHS | ["/home/circleci/project/android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk"] |
| GRADLE_ALL_AAB_OUTPUT_PATHS | [] |
| GRADLE_ALL_OUTPUT_JSON_OUTPUT_PATHS | ["/home/circleci/project/android/app/build/outputs/apk/releaseStaging/output.json"] |
| GRADLE_ALL_MAPPING_TXT_OUTPUT_PATHS | [] |
| GRADLE_APK_OUTPUT_PATH | /home/circleci/project/android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk |
| GRADLE_OUTPUT_JSON_OUTPUT_PATH | /home/circleci/project/android/app/build/outputs/apk/releaseStaging/output.json |
+-------------------------------------+------------------------------------------------------------------------------------------------+
[21:30:36]: Failed to upload release
编辑:这就是我的 Fastfile
的样子:
desc "Upload to AppCenter"
private_lane :upload_to_appcenter do | options |
appcenter_upload(
owner_name: owner_name,
app_name: "MyAppName-Android",
api_token: options[:api_token],
destinations: "MyAppNameTesters",
notify_testers: true,
release_notes: "./CHANGELOG.md"
)
end
我们似乎无法提取以下任何一项:构建版本(版本代码)、唯一标识符(包)和最低 OS (SDK) 版本。您能否验证这些内容是否已在您上传的清单中设置?
我想我明白了。我将以下内容添加到我的 app/build.gradle
并成功将我的应用上传到应用中心:
def appCenterSdkVersion = '3.3.0'
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
我最近将我的项目更新到最新版本的 Appcenter (v. 3.1.1),现在我的 Android CircleCI 管道失败了(但是将 iOS 应用发布到应用中心没有错误).
这是我通过 fastlane 运行 时得到的错误:
[21:29:32]: Upload finished
[21:29:32]: Waiting for release to be ready...
[21:30:36]: Error fetching release: A problem occured while extracting your app. (Correlation ID: fdb816e8-5539-45ae-bb9a-a877272ec67b)
+-------------------------------------+------------------------------------------------------------------------------------------------+
| Lane Context |
+-------------------------------------+------------------------------------------------------------------------------------------------+
| ENVIRONMENT | prod |
| PLATFORM_NAME | android |
| LANE_NAME | android appcenter |
| GRADLE_BUILD_TYPE | releaseStaging |
| GRADLE_ALL_APK_OUTPUT_PATHS | ["/home/circleci/project/android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk"] |
| GRADLE_ALL_AAB_OUTPUT_PATHS | [] |
| GRADLE_ALL_OUTPUT_JSON_OUTPUT_PATHS | ["/home/circleci/project/android/app/build/outputs/apk/releaseStaging/output.json"] |
| GRADLE_ALL_MAPPING_TXT_OUTPUT_PATHS | [] |
| GRADLE_APK_OUTPUT_PATH | /home/circleci/project/android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk |
| GRADLE_OUTPUT_JSON_OUTPUT_PATH | /home/circleci/project/android/app/build/outputs/apk/releaseStaging/output.json |
+-------------------------------------+------------------------------------------------------------------------------------------------+
[21:30:36]: Failed to upload release
编辑:这就是我的 Fastfile
的样子:
desc "Upload to AppCenter"
private_lane :upload_to_appcenter do | options |
appcenter_upload(
owner_name: owner_name,
app_name: "MyAppName-Android",
api_token: options[:api_token],
destinations: "MyAppNameTesters",
notify_testers: true,
release_notes: "./CHANGELOG.md"
)
end
我们似乎无法提取以下任何一项:构建版本(版本代码)、唯一标识符(包)和最低 OS (SDK) 版本。您能否验证这些内容是否已在您上传的清单中设置?
我想我明白了。我将以下内容添加到我的 app/build.gradle
并成功将我的应用上传到应用中心:
def appCenterSdkVersion = '3.3.0'
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"