More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'

后端 未结 7 418
轻奢々
轻奢々 2021-01-30 05:59

i am trying android WorkManager, The code is throwing error \"More than one file was found with OS independent path \'META-INF/proguard/androidx-annotations.pro

7条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 06:56

    I got the same error when I added the following to my app's build.gradle dependencies section:

    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"

    Following the Migration to AndroidX:

    1. In Android Studio, from the Refactor menu, select Migrate to AndroidX...
    2. better check the option to backup your project as a zip file in case the migration fails,
    3. and then after clicking Migrate you will get to choose the location to save the zip backup.

    now I am able to build without problems so far.


    My setup

    Android Studio 3.2.1
    JRE: 1.8.0_152-release-1136-b06 x86_64
    JVM: OpenJDK 64-Bit Server VM by JetBrains
    macOS 10.13.6

提交回复
热议问题