Android build fails error: cannot find symbol new HighlighterViewPackage()

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

Maintainer thường phản hồi trong vòng 1 ngày

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

  • #4014 của @omribz156 — đã đóng, không merge

Đá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
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
android, react-native
Lĩnh vực
build-system, mobile

Hướng nghiên cứu

Bắt đầu với bản build Android được khởi chạy bằng yarn android và kiểm tra các mục HighlighterViewPackage và KeyboardInputPackage trong tệp được tạo android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java. So sánh hành vi với bản patch được tham chiếu trong issue #3805 và thiết lập uilib-native 5.0.1. Được xem là hoàn tất khi bản build Android debug của React Native 0.84.1 hoàn tất mà không có bất kỳ lỗi thiếu symbol nào trong hai lỗi đó.

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

Mô tả

bug

Android build fails when running yarn android in react native cli latest version 0 84 1 new arch enabled

  • What went wrong:
    Execution failed for task ':app:compileDevDebugJavaWithJavac'.

Compilation failed; see the compiler output below.
android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:154: error: cannot find symbol
new HighlighterViewPackage(),
^
symbol: class HighlighterViewPackage
location: class PackageList
android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:155: error: cannot find symbol
new KeyboardInputPackage(getApplication())
^
symbol: class KeyboardInputPackage
location: class PackageList
2 errors

Steps to reproduce

run yarn android (build debug mode of the app)

Expected behavior

android build is built succesfully without any errors

Actual behavior

android build fails

More Info

It is related to uilib-native library, if I apply the patch from that https://github.com/wix/react-native-ui-lib/issues/3805 it works without any error, so when we can expect it to be merged into uilib-native lib?

Environment
  • React Native version: 0.84.1 (new arch enabled, hermes enabled)
  • React Native UI Lib version: 8.3.4 (latest)
  • uilib-native: 5.0.1 (latest)
Affected platforms
  • Android
Ngôn ngữ chính
TypeScript
Star
7.2k
Fork
749
Merge trung bình
29 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 wix/react-native-ui-lib

Tất cả issue của wix/react-native-ui-lib

Issue tương tự

Thêm issue về TypeScript

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.