小编Tna*_*ffh的帖子

给定的工件包含一个包含引用"android.support.v4.content"的字符串文字,无法安全地重写.对于androidx

我升级了android studio to 3.4 canary,现在由于以下错误我无法再成功构建:

The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.
Run Code Online (Sandbox Code Playgroud)

更多细节:

Caused by: java.lang.RuntimeException: Failed to transform '.gradle/caches/modules-2/files-2.1/com.jakewharton/butterknife-compiler/9.0.0-SNAPSHOT/732f93940c74cf32a7c5ddcc5ef66e53be052352/butterknife-compiler-9.0.0-SNAPSHOT.jar' using Jetifier. Reason: The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated …
Run Code Online (Sandbox Code Playgroud)

android butterknife androidx android-jetifier

56
推荐指数
5
解决办法
3万
查看次数

标签 统计

android ×1

android-jetifier ×1

androidx ×1

butterknife ×1