LoginSignup
1
0

More than 3 years have passed since last update.

「Failed to transform file 'kotlin-compiler-embeddable-1.2.71.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform」と出てビルドがこける

Posted at

エラーログ

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.
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0