问题: 项目导入两个jar包提示:Execution failed for JetifyTransform错误,并且有如下提示;
Suggestions:
- If you believe this library doesn’t need to be jetified (e.g., if it already supports AndroidX, or if it doesn’t use support libraries/AndroidX at all), add android.jetifier.blacklist = {comma-separated list of regular expressions (or simply names) of the libraries that you don’t want to be jetified} to the gradle.properties file.
- If you believe this library needs to be jetified (e.g., if it uses old support libraries and breaks your app if it isn’t jetified), contact the library’s authors to update this library to support AndroidX and use the supported version once it is released.
翻译: 如果您认为这个库不需要被jetified(例如,如果它已经支持AndroidX,或者它没有使用support库或者AndroidX),请添加android.jetifier.blacklist ={不想被jetifid的sdk列表名称,并用逗号进行分割开}属性到gradle.properties文件中。
解决方法:在项目的gradle.properties文件中加入下面代码,多个jar间用逗号隔开
android.jetifier.blacklist = aaa.jar,bbb.jar
参考文章:
Execution failed for JetifyTransform(执行JetifyTransform失败)