发布版本不是在react native中构建的,而是在调试版本上可以正常工作吗?

时间:2019-03-05 14:17:33

标签: javascript react-native jsx

我的发布版本正在构建中,但调试版本运行良好。以下是./gradlew assembleRelease命令后的错误。

  
    

EACCES:权限被拒绝,打开'/ tmp / metro-cache / 76 / 767c655ae860facbfddc00f0cde247a0e0e280c7397f5536325eec844f4b80f74e265a'

  
     

错误:EACCES:权限被拒绝,打开   '/ tmp / metro-cache / 76 / 767c655ae860facbfddc00f0cde247a0e0e280c7397f5536325eec844f4b80f74e265a'       在Object.fs.openSync(fs.js:646:18)       在Object.fs.writeFileSync(fs.js:1299:33)       在FileStore.set(/ home / user / React-native-Projects / Kellton Project / Konnect / Sprint01 / konnect-react / node_modules / metro-cache / src / stores / FileStore.js:37:8)       在Cache.set(/ home / user / React-native-Projects / Kellton Project / Konnect / Sprint01 / konnect-react / node_modules / metro-cache / src / Cache.js:122:31)       在/ home / user / React-native-Projects / Kellton Project / Konnect / Sprint01 / konnect-react / node_modules / metro / src / DeltaBundler / Transformer.js:181:13       在Generator.next()       在步骤(/ home / user / React-native-Projects / Kellton Project / Konnect / Sprint01 / konnect-react / node_modules / metro / src / DeltaBundler / Transformer.js:31:30)       在/ home / user / React-native-Projects / Kellton Project / Konnect / Sprint01 / konnect-react / node_modules / metro / src / DeltaBundler / Transformer.js:42:15       在       在process._tickCallback(internal / process / next_tick.js:188:7)

     
    

任务:app:bundleReleaseJsAndAssets失败

  
     

失败:构建失败,并出现异常。

     
      
  • 出了什么问题:任务':app:bundleReleaseJsAndAssets'的执行失败。

         
        

    进程'命令'节点'的退出值非零完成

      
  •   
  • 尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的见解。

  •   
  • https://help.gradle.org

  • 获得更多帮助   

即使我授予他们许可,他们也无法工作。 我认为这是由于库响应本机声音引起的,因为如果我使用sudo gradlew assmbleRelease,则会显示以下错误。

      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/values-nl_values-nl.arsc.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/values-large-v4_values-large-v4.arsc.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-mdpi-v4_abc_ic_menu_paste_mtrl_am_alpha.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-xxhdpi-v4_abc_text_select_handle_right_mtrl_dark.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/values-ca_values-ca.arsc.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/values-en-rAU_values-en-rAU.arsc.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-xxxhdpi-v4_abc_ic_menu_copy_mtrl_am_alpha.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-mdpi-v4_abc_list_selector_disabled_holo_dark.9.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/color-v23_abc_tint_default.xml.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-xhdpi-v4_abc_scrubber_primary_mtrl_alpha.9.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-xxxhdpi-v4_abc_text_select_handle_right_mtrl_dark.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-ldrtl-xxxhdpi-v17_abc_spinner_mtrl_am_alpha.9.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/drawable-mdpi-v4_abc_text_select_handle_left_mtrl_light.png.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/values-gl_values-gl.arsc.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/layout_abc_activity_chooser_view.xml.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/layout_abc_alert_dialog_material.xml.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/anim_abc_tooltip_exit.xml.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/values-cs_values-cs.arsc.flat\
      -R\
      /home/user/React-native-Projects/Kellton Project/Konnect/Sprint01/konnect-react/node_modules/react-native-voice/android/build/intermediates/res/compiled/release/values-zh-rCN_values-zh-rCN.arsc.flat\
      --auto-add-overlay\
      --non-final-ids\
      -0\
      apk\
      --no-version-vectors   Daemon:  AAPT2 aapt2-3.2.1-4818971-linux Daemon #0
     
      
  • 尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的见解。

  •   
  • https://help.gradle.org

  • 获得更多帮助   

请帮助我,从几天开始我就会陷入困境。任何帮助都将不胜感激。

0 个答案:

没有答案