5
4

More than 3 years have passed since last update.

Android: dexOptions.preDexLibraries オプションは削除しよう

Last updated at Posted at 2021-08-04

Android Gradle Plugin 7.0.0 から、dexOptions が Deprecated になりました。

Using dexOptions is obsolete.

Android Gradle Plugin 7.0.0-alpha15 以上では、エラーメッセージがわかりやすくなり、以下のメッセージとなるようです。

DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.

D8 が dexOptions を参照しなくなったため、preDexLibraries は指定する必要がなくなるとのことです。

対応としては、dexOptions.preDexLibraries は削除しましょう。

5
4
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
5
4