android - 进程 'command ' node'' 以非零退出值 1 linux 完成,同时生成签名的 apk

标签 android react-native ubuntu apk signed-apk

Process 'command 'node'' finished with non-zero exit value 1

在使用 Ubuntu 16.04 的 Android Studio 3.4 中,当我生成签名 APK 时,此错误即将到来。
但是当我生成调试 apk 时就可以了。
我已经尝试了 SO 本身的许多解决方案,但我还没有找到任何解决方案。
请问有人知道吗?
提前致谢

最佳答案

只需将这些行添加到项目 build.gradle 文件中,我就可以生成生成的签名 apk 。

allprojects {
     configurations.matching { it.name == '_internal_aapt2_binary' }.all { config ->
        config.resolutionStrategy.eachDependency { details ->
            details.useVersion("3.3.2-5309881")
        }
    }
}

关于android - 进程 'command ' node'' 以非零退出值 1 linux 完成,同时生成签名的 apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56662479/

相关文章:

android - 我如何处理 Firebase 云消息传递中的数据负载?

android - AlertDialog ONClickListener 不工作

react-native - 检查 Native UI 组件是否存在

android - adb 设备上没有权限错误

linux - makefile 中的执行错误

python - 如何在传递输入参数后从Python执行shell脚本

javascript - Cordova cordova-plugin-qrscanner : Opaque camera view

android - iOS 和 Android 设备之间的点对点通信

javascript - 如何对对象数组进行排序?

reactjs - React-native-reanimated:无法解析 "./useValue"