NativeScript / NativeScript/nativescript-cli

platform not properly prepared after previous command crash

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

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

bug
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ả

  • CLI: 6.0.2

After running preview command, and the command crashes you cannot run the project. Platform folder is not populated with all needed files and prepare is not executed correctly again on run. Build fails with: Unable to apply changes on device: ZX1G424P6K. Error is: spawn gradlew.bat ENOENT.

To Reproduce

  1. tns create jsApp --js
  2. tns preview
  3. Scan the QR code on ios, then scan on android. The command crashes.
  4. tns run android build fails. Platform android is not correctly prepared
    log.txt

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Start by reproducing the crash with the listed tns create, tns preview, and tns run android commands, then inspect log.txt and the preview crash cleanup and platform preparation flow. Done means a crash during preview does not leave the Android platform incomplete, and a subsequent tns run android prepares and builds successfully.

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, ios, javascript
Lĩnh vực
cli, mobile-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 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

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.