Cấp bậc tác giả:

DOTNET

Hướng dẫn sửa lỗi React-Native assembleRelease fails for task ':app:bundleReleaseJsAndAssets'

Được viết bởi webmaster ngày 20/08/2019 lúc 07:15 PM
Khi chạy dòng lệnh ./gradlew assembleRelease nó sẽ sinh ra lỗi sau: Error:Execution failed for task ':app:bundleReleaseJsAndAssets. > A problem occurred starting process 'command 'node'
  • 0
  • 5910

Hướng dẫn sửa lỗi React-Native assembleRelease fails for task ':app:bundleReleaseJsAndAssets'

Khi chạy dòng lệnh ./gradlew assembleRelease nó sẽ sinh ra lỗi sau:
Error:Execution failed for task ':app:bundleReleaseJsAndAssets. 
> A problem occurred starting process 'command 'node'
Lỗi này rất nhiều bạn gặp phải trong quá trình chạy React-native và sử dụng Terminal để gõ lệnh sinh APK Release
Cách sửa như sau, gõ lệnh này thay thế:
./gradlew assembleRelease -x bundleReleaseJsAndAssets
Nhớ cd vào android và xoá cái build cũ đi bằng lệnh  ./gradlew clean
Có hướng dẫn sử dụng ./gradlew --stop mà mình chưa thử, bạn có thể thử xem sao

Nguồn bài viết: DOTNET.VN

BÌNH LUẬN BÀI VIẾT

Bài viết mới nhất

LIKE BOX

Bài viết được xem nhiều nhất

HỌC HTML