|
|
苦恼的冲锋衣 · COVID-19疫情对中国区域经济及产业的影响· 1 年前 · |
|
|
霸气的沙滩裤 · 程絮森 - 教授 - 经济信息管理系 ...· 1 年前 · |
|
|
魁梧的机器人 · 关于时区(TimeZone)的C#方法一瞥_ ...· 1 年前 · |
|
|
不爱学习的火车 · 坐着地铁去机场!沈阳将新开8条地铁线路· 2 年前 · |
I migrated my project to androidX. Now I get the following error message on building the project:
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.
Caused by: java.lang.RuntimeException: Failed to transform butterknife-compiler-9.0.0-rc1.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 manually to add support for androidx.gradle.properties:
android.useAndroidX=true android.enableJetifier=truebuild.gradle (app module)
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 buildToolsVersion '28.0.3' implementation 'com.jakewharton:butterknife:9.0.0-rc1' kapt 'com.jakewharton:butterknife-compiler:9.0.0-rc1'gradle distribution: gradle-4.10.2
I've tried using different versions of the artifacts, still getting the same error