'Failed to transform" error after migrating to AndroidX

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

    For those experiencing the same issue with Android Studio 3.2 Canary 15 (or later) after using "Refactor to AndroidX...":

    I had to update some dependencies manually, i.e. change

        classpath 'io.fabric.tools:gradle:1.25.1'
    

    to

        classpath 'io.fabric.tools:gradle:1.27.0'
    

    in my project's build.gradle file.

    If you're using dagger you have to upgrade to version 2.20 or later.

    This is because some libraries are not yet compatible with the AndroidX refactor as mentioned under Known issues in the AndroidX release notes.

提交回复
热议问题