Skip to content

Commit e4f6b9f

Browse files
committed
fix crash on Android 5.0 API 21.
1 parent 23d2fc7 commit e4f6b9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Legend/legendCore/src/main/java/com/lody/legend/art/ArtMethod.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static ArtMethod of(Method method) {
5050
? new ArtMethodStructV23_64Bit(method)
5151
: new ArtMethodStructV23(method);
5252
}
53-
else if (Build.VERSION.SDK_INT >= 21) {
53+
// The artmethod struct of Android 5.0 equals to V19,so it should not use V22.
54+
else if (Build.VERSION.SDK_INT > 21) {
5455
return Runtime.is64Bit()
5556
? new ArtMethodStructV22_64Bit(method)
5657
: new ArtMethodStructV22(method);

0 commit comments

Comments
 (0)