'Failed to transform" error after migrating to AndroidX

前端 未结 5 897
我在风中等你
我在风中等你 2021-02-08 07:55

I\'m using Android Studio 3.2 Canary 14 and am trying to migrate an existing project to use AndroidX. It sounds from https://developer.android.com/topic/libraries/s

5条回答
  •  无人及你
    2021-02-08 08:55

    I had been experiencing this problem while running assembleAndroidTest on Jenkins. The weirdest part was that this task ran sans any issues on my mac's terminal without any issues, but failed on Jenkins with-

    Failed to transform file 'cucumber-java-1.2.5.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
    

    Had been looking for solutions for a couple of days now, having worked though different suggestions - none of which worked.

    Finally, disabling Jetifier in gradle.properties resolved it for me.

    android.enableJetifier=false
    

提交回复
热议问题