リリースビルドを作成しようとしたら、次のエラーが起きた。
This should not happen under normal circumstances, please file an issue if it does. ...
Gradle Plugin 3.3.2 で、2MB以上の大きさの画像を使うときに起きる Gradle Plugin のバグらしい。
次の記述の追加で解決した。
// Top-level build file allprojects { // Workaround for https://issuetracker.google.com/117900475 // Remove when upgrading to AGP 3.4 or higher. configurations.matching { it.name == '_internal_aapt2_binary' }.all { config -> config.resolutionStrategy.eachDependency { details -> details.useVersion("3.5.0-alpha03-5252756") } } }
参考サイト:
stackoverflow.com