エラーログ
AndroidX対応をして、circleciでビルドしたところこんな感じのエラーが出ていました。
* What went wrong:
Execution failed for task ':modules:legacy:kaptGenerateStubsDevDebugKotlin'.
> Could not resolve all files for configuration ':modules:legacy:kapt'.
> Failed to transform file 'kotlin-compiler-embeddable-1.2.71.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
> Failed to transform '/home/circleci/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.2.71/a79f934bfbc1c7e16638da3474feab351735f1c0/kotlin-compiler-embeddable-1.2.71.jar' using Jetifier. Reason: Malformed input or input contains unmappable characters: javaslang/?.class. (Run with --stacktrace for more details.)
調査した結果
とりあえずググってみたところ、こちらの記事がヒットしました。
解決法
gradle-propertiesファイルにこのようにjetifierのブラックリストに追加する。
gradle-properties
android.jetifier.blacklist = kotlin-compiler-embeddable-.*\\.jar
ただ、今の所警告が出るっぽい。。良いやり方知っている方いれば教えてください。
WARNING: The option setting 'android.jetifier.blacklist=kotlin-compiler-embeddable-.*\.jar' is experimental and unsupported.