Skip to content

Commit a5d6501

Browse files
committed
关闭 R8 全模式避免反射代码被过度优化的问题
1 parent 0bd00e3 commit a5d6501

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ android.useAndroidX = true
2121
android.enableJetifier = true
2222

2323
# Use transitive R class for backward compatibility with old code
24-
android.nonTransitiveRClass=false
24+
android.nonTransitiveRClass=false
25+
26+
# Turn off the full mode of R8 to prevent the reflection code from being overly optimized
27+
android.enableR8.fullMode=false

0 commit comments

Comments
 (0)