Skip to content

Commit

Permalink
fix: Suppress R8 missing class com.google.devtools.*.ThrowableExtensi…
Browse files Browse the repository at this point in the history
…on for AGP 8.x (#2050)

Suppress `ERROR: R8: Missing class
com.google.devtools.build.android.desugar.runtime.ThrowableExtension`
when running with AGP 8.x

The Android Native SDK has caught this error internally, so we're safe
to suppress this error.

Fix failed job
https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/actions/runs/11359234733/job/31595029855?pr=2049
  • Loading branch information
littleGnAl authored and sylar committed Nov 11, 2024
1 parent 9e8dcd1 commit bc7d1ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/consumer-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
-keep class org.jetbrains.** { *; }

-keep class io.agora.**{*;}
# Suppress ERROR: R8: Missing class com.google.devtools.build.android.desugar.runtime.ThrowableExtension
-dontwarn com.google.devtools.build.android.desugar.runtime.ThrowableExtension

0 comments on commit bc7d1ec

Please sign in to comment.