crash in release build with R8
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### ExoPlayer Version
2.18.2
### Devices that reproduce the issue
not applicable
### Devices that do not reproduce the issue
not applicable
### Reproducible in the demo app?
Not tested
### Reproduction steps
./gradlew assembleRelease
### Expected result
build completes
### Actual result
Build fails with R8 issue:
```
> Task :app:minifyReleaseWithR8 FAILED
ERROR:/Users/xxx/.gradle/caches/transforms-3/397cdea19495290eb031a5de22324959/transformed/firebase-crashlytics-18.3.2-runtime.jar: R8: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 20
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete, position: Lcom/google/firebase/crashlytics/internal/model/AutoValue_CrashlyticsReport_Session_Event$1;SmartWorkoutVideoPreviewScreen(Lcom/xxx/sensors/ui/smartworkout/video_preview/SmartWorkoutVideoPreviewState;Lkotlin/jvm/functions/Function0;Landroidx/compose/runtime/Composer;I)V, origin: /Users/xxx/.gradle/caches/transforms-3/397cdea19495290eb031a5de22324959/transformed/firebase-crashlytics-18.3.2-runtime.jar:com/google/firebase/crashlytics/internal/model/AutoValue_CrashlyticsReport_Session_Event$1.class
```
### Media
not applicable
### Bug Report
- [ ] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.
Contributor guide
Assessment
This issue has not been assessed yet.