NativeScript / NativeScript/nativescript-cli
Error is: The parser encountered some structural problem in the manifest.
Đang mở
Chưa có ai nhận issue này.
bug-pending-triage
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 204
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 8
Mô tả
Issue Description
Run the app with ns run android
You ll get a cryptic error at the end
Unable to apply changes on device: emulator-5554. Error is: The parser encountered some structural problem in the manifest..
The log below shows the actual error which should be brought back up to the user:
INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1130854405.tmp/base.apk (at Binary XML file line #30): com.tns.NativeScriptActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present
Reproduction
Run an app with a manifest not ready for android S
Relevant log output (if applicable)
d/app/build/outputs/apk/debug/app-debug.apk"
Result when throw error is false:
{
stdout: 'Performing Streamed Install\n',
stderr: 'adb: failed to install /Volumes/dev/nativescript/nativescript-material-components/demo-vue/platforms/android/app/build/outputs/apk/debug/app-debug.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1130854405.tmp/base.apk (at Binary XML file line #30): com.tns.NativeScriptActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]\n',
exitCode: 1
}
Error name: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED result code: -108
The parser encountered some structural problem in the manifest.
Unable to apply changes on device: emulator-5554. Error is: The parser encountered some structural problem in the manifest..
Environment
npm ERR! cb.apply is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /Volumes/data/mguillon/.npm/_logs/2022-03-02T20_01_11_386Z-debug.log
Install for [ 'nativescript-envinfo@latest' ] failed with code 1
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Chạy lệnh được báo cáo ns run android với một manifest chưa sẵn sàng cho Android S và so sánh đầu ra của CLI với adb stderr được hiển thị trong issue. Truy vết nơi kết quả INSTALL_PARSE_FAILED_MANIFEST_MALFORMED được chuyển thành thông báo parser chung; hoàn tất khi lỗi cài đặt Android có thể xử lý được hiển thị cho người dùng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, javascript
- Lĩnh vực
- cli, mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100