You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stack traces
Caused by: java.lang.IndexOutOfBoundsException: End index: 5 >= 4
at com.google.protobuf.ByteString.checkRange(ByteString.java:1263)
at com.google.protobuf.ByteString.copyTo(ByteString.java:649)
at com.google.protobuf.ByteString.copyTo(ByteString.java:632)
at com.didiglobal.booster.aapt2.Aapt2ParserKt.parseResFileMetadata(Aapt2Parser.kt:92)
at com.didiglobal.booster.aapt2.Aapt2ParserKt.getMetadata(Aapt2Parser.kt:33)
at com.didiglobal.booster.task.compression.cwebp.CwebpCompressFlatImages$compress$1.apply(CwebpCompressFlatImages.kt:60)
at com.didiglobal.booster.task.compression.cwebp.CwebpCompressFlatImages$compress$1.apply(CwebpCompressFlatImages.kt:30)
Please provide the following informations.
Java version. 9.0.4
Gradle version 6.9
Android Gradle plugin version. 4.0.1
Booster version. 4.13.0
Stack traces
Caused by: java.lang.IndexOutOfBoundsException: End index: 5 >= 4
at com.google.protobuf.ByteString.checkRange(ByteString.java:1263)
at com.google.protobuf.ByteString.copyTo(ByteString.java:649)
at com.google.protobuf.ByteString.copyTo(ByteString.java:632)
at com.didiglobal.booster.aapt2.Aapt2ParserKt.parseResFileMetadata(Aapt2Parser.kt:92)
at com.didiglobal.booster.aapt2.Aapt2ParserKt.getMetadata(Aapt2Parser.kt:33)
at com.didiglobal.booster.task.compression.cwebp.CwebpCompressFlatImages$compress$1.apply(CwebpCompressFlatImages.kt:60)
at com.didiglobal.booster.task.compression.cwebp.CwebpCompressFlatImages$compress$1.apply(CwebpCompressFlatImages.kt:30)
debug了下。发现项目里会存在 drawable-pt-rBr-xxhdpi 这样的图片文件夹, 在CwebpCompressFlatImages解析的时候, config.local为pt-Br, 为5位, 而localeScript为4位, 所以调用copyto方法会报错, (参见Aapt2Parse.kt parseResFileMetadata 方法)
The text was updated successfully, but these errors were encountered: