The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. for androidx

前端 未结 9 984
礼貌的吻别
礼貌的吻别 2020-12-13 08:34

I upgraded my android studio to 3.4 canary and now I cannot successfully build anymore due to the following error:

The given artifact contains          


        
9条回答
  •  时光说笑
    2020-12-13 09:11

    My project doesn't use butterknife, but I had the same error "The given artifact contains a string literal with a package reference 'android.support.v4.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx " This what I did to solve it: Update your parceler version

    gradle build file

    Replace:

    annotationProcessor 'org.parceler:parceler:1.1.6'
    implementation 'org.parceler:parceler-api:1.1.6'
    

    With:

      annotationProcessor 'org.parceler:parceler:1.1.13'
      implementation 'org.parceler:parceler-api:1.1.13'
    

提交回复
热议问题