ionic run android: Build failed with an exception

巧了我就是萌 提交于 2020-01-24 07:27:32

问题


  • What went wrong: Execution failed for task ':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'' finished with non-zero exit value 127

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3 mins 14.449 secs Error: Error code 1 for command: /var/www/html/street_delight/svn/trunk/add_merchant_app/platforms/android/gradlew with args: cdvBuildDebug,-b,/var/www/html/street_delight/svn/trunk/add_merchant_app/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true


回答1:


Android SDK works on 32-bit env, if you are using 64-bit env then add following:

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

Thanks to codelatte



来源:https://stackoverflow.com/questions/36259859/ionic-run-android-build-failed-with-an-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!