【问题标题】:ionic run android: Build failed with an exceptionionic run android:构建失败并出现异常
【发布时间】:2023-03-03 04:39:01
【问题描述】:
  • 出了什么问题: 任务 ':CordovaLib:processDebugResources' 执行失败。

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/vishal/sw/android/build-tools/23.0.3/aapt'' 完成非零退出值 127

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

构建失败

总时间:3 分 14.449 秒 错误:命令的错误代码 1:/var/www/html/street_delight/svn/trunk/add_merchant_app/platforms/android/gradlew 带参数:cdvBuildDebug,-b,/var/www/html/street_delight/svn/trunk/add_merchant_app /platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

【问题讨论】:

    标签: ionic-framework android-sdk-tools


    【解决方案1】:

    Android SDK 适用于 32 位环境,如果您使用的是 64 位环境,请添加以下内容:

    sudo apt-get install lib32stdc++6
    sudo apt-get install lib32z1
    

    感谢codelatte

    【讨论】:

    • 我使用了 fedora 24 并尝试安装 sudo dnf install lib32stdc++6。但它说找不到那个包。
    • 请尝试:sudo yum install libstdc++.i686 && sudo yum install ncurses-libs.i686 && sudo yum install zlib.i686
    • 对我来说也是同样的问题:我试图构建 android 但得到了同样的错误。 FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > Could not resolve all dependencies for configuration ':_debugCompile'. > Could not find any version that matches com.android.support:support-v13:23+.
    • @AshishBhosle 我正在使用 Windows 和 Ionic Angular 项目。如何将以上 2 个包安装到我的项目中?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-01
    • 2020-05-28
    • 1970-01-01
    • 2021-12-21
    • 1970-01-01
    • 2022-07-20
    • 1970-01-01
    相关资源
    最近更新 更多