Rive-android 10.4.2: Native libraries not aligned for 16KB page sizes despite using NDK27

Đang mở
#415 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, kotlin
Lĩnh vực
build-system, mobile

Hướng nghiên cứu

Start by reproducing the issue with rive-android 10.4.2 and inspect the AAR's lib/x86/librive-android.so and armeabi-v7a/librive-android.so using APK Analyzer or Google Play Console. Compare the native libraries' LOAD section alignment against the expected 16KB alignment, and confirm that the packaged libraries no longer produce UNALIGNED warnings.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

triage
Description

The Rive Android library version 10.4.2 claims to support 16KB page sizes by using NDK27, but the precompiled native libraries in the AAR are still not properly aligned for
16KB page sizes, causing Google Play Console warnings and potential compatibility issues with Android 15+ devices.

Version Information

  • rive-android version: 10.4.2
  • Android Gradle Plugin (AGP): 8.8.2
  • NDK version: Project uses latest NDK
  • Compile SDK: 35
  • Target SDK: 35
  • Min SDK: 24
Steps to reproduce
  1. Add implementation(libs.rive) with version 10.4.2 to an Android project
  2. Build an APK/AAB targeting Android 15 (API 35)
  3. Analyze the APK with APK Analyzer or upload to Google Play Console
  4. Check the native library alignment warnings

lib/x86/librive-android.so: \e[31mUNALIGNED\e[0m (2**12)
armeabi-v7a/librive-android.so: \e[31mUNALIGNED\e[0m (2**12)

Expected behavior

When analyzing the APK/AAB with Google Play Console or APK Analyzer, all native libraries (.so files) from Rive should show proper 16KB page size alignment (16KB LOAD section alignment) for arm64-v8a and x86_64 architectures.

Additional context

According to Android documentation, NDK r28+ compiles with 16KB alignment by default,

Ngôn ngữ chính
Kotlin
Star
545
Fork
69
Merge trung bình
19 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rive-app/rive-android

Tất cả issue của rive-app/rive-android

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.