Appcenter-cli: Appcenter codepush error: Failed to release a CodePush update

Created on 28 Jan 2021  路  9Comments  路  Source: microsoft/appcenter-cli

Hello! :wave:

I recently bumped appcenter-cli from 1.1.20 on a project to 2.7.3 version and now our appcenter codepush release-react command is failing.

If I'm not mistaken all the options we're passing are correct:

appcenter codepush release-react -a ulabox-mobile/ulabox-android -d Production -o bundle --disable-duplicate-release-error -t $(node -p "require('./package.json').version")

I tried using the --debug flag but no other info was provided:

info Writing bundle output to:, bundle/CodePush/index.android.bundle
info Writing sourcemap output to:, bundle/CodePush/index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 67 asset files
info Done copying assets
Error: Failed to release a CodePush update.

Thanks!

CodePush bug

All 9 comments

I've been testing various Releases of the appcenter-cli and I found out that 2.1.0 is the last version that works with the command that I copied at the issue.

Starting from 2.1.1 and above all the versions fail to release the CodePush update.

Hey @carloscuesta,

This problem is not reproducible on my side in the CodePush-Example app. Therefore, can you provide additional information for us:

  • Which version of react-native and react-native-code-push are you using?

  • Are you using Hermes in your application?

Sure!

  • react-native-code-push: 6.4.0
  • react-native: 0.60
  • Not using hermes

@carloscuesta, Excuse me, maybe there was some misunderstanding, you probably wrote the version of appcenter-cli: v2.7.3. Because there is no react-native-code-push with this version. Could you clarify the version of code-push-react-native used in your project?

Sure, I edited the comment, sorry for the confusion 馃槄

@carloscuesta, May I ask you to provide a project.ext.ract value in android/app/build.gradle file if possible?
f.e. my build.gradle:
Screen Shot 2021-01-29 at 2 24 00 PM

It's not defined the project.ext.react on the android/app/build.gradle

@carloscuesta So, I managed to reproduce the problem, we added it to our backlog, in fact, there is a workaround for you:

Add this code in your android/app/build.gradle

project.ext.react = [
   enableHermes: false
]

I will let you know when this is fixed in the new version, thanks.

I have been able to release a CodePush version with the workaround you suggested! 馃憦馃徏

I will look forward to the release of the fix

Thanks for your time 鉂わ笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mirik999 picture mirik999  路  3Comments

kartikk picture kartikk  路  5Comments

MihaMarkic picture MihaMarkic  路  4Comments

nandafirmans picture nandafirmans  路  4Comments

carloscuesta picture carloscuesta  路  4Comments