'Failed to transform" error after migrating to AndroidX

前端 未结 5 904
我在风中等你
我在风中等你 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:54

    I was able to work around a similar problem by excluding a certain library from being jetified, which can be done by adding to gradle.properties:

    android.jetifier.blacklist = ...
    

    Note that this option was added in Android Gradle plugin 3.3.0-rc01 as a temporary workaround. See https://issuetracker.google.com/issues/119135578#comment5 for more details.

提交回复
热议问题