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

前端 未结 9 979
礼貌的吻别
礼貌的吻别 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:14

    Add the last version of the butterknive dependency you can check it here if it changes (https://github.com/JakeWharton/butterknife). It supports androidX. Then go to your app build graddle and replace the old version with the following:

    dependencies {
    implementation 'com.jakewharton:butterknife:10.0.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
    }
    

提交回复
热议问题