How can I repackage after renaming the class

Đang mở
#125 1 bình luận 0 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, java
Lĩnh vực
mobile-dev, tooling

Hướng nghiên cứu

Start by tracing the shown flow through ApkModule.loadApkFile, DexDirectory.rename and save, ApkBuilder.apply, and apk.writeApk; identify which step leads to the missing Application class. Reproduce the issue with the provided sequence and verify the output APK can be repackaged after the class and package are renamed.

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

Mô tả

When I rename the class and package it, it prompts that I cannot find the Application class

val apk = ApkModule.loadApkFile(logger, inFile)
val directory = DexDirectory.fromZip(apk.zipEntryMap)
directory.rename(TypeKey.parse("xxx"), TypeKey.parse("xxxxx))
val builder = ApkBuilder(apk, directory)
builder.apply()
directory.refresh()
directory.shrink()
directory.merge()
directory.refreshFull()
directory.save()
apk.writeApk(outFile)  
Ngôn ngữ chính
Java
Star
2.3k
Fork
417
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 REAndroid/APKEditor

Tất cả issue của REAndroid/APKEditor

Issue tương tự

Thêm issue về Java

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.