Appcenter failed to build Android React Native build due to Jetifier

80 Views Asked by At

I have React Native project with CI Appcenter integration Due to Jetifier warn build always fails

I tried to use

android.useAndroidX=false
android.enableJetifier=false

but build fails, because I need androidx migrations.

I also tried to use

"@react-native-community/cli": "^12.0.0-alpha.3"

which should not use Jetifier, but Appcenter seems to force run Jetifier anyway

Any solution to this?

enter image description here

1

There are 1 best solutions below

0
Antoine On

As explained here, you can replace your jetifier version with the last 1.x

yarn add -D [email protected]