gpt4 book ai didi

android - ionic 平台配置错误: ubuntu

转载 作者:行者123 更新时间:2023-12-04 19:19:23 26 4
gpt4 key购买 nike

我正在使用 Ubuntu 14.04。我正在尝试配置 ionic 框架。当我尝试为 Android 配置平台时,出现以下错误。

  /home/sameera/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while listing Android targets
at /home/sameera/.cordova/lib/android/cordova/3.5.1/bin/lib/check_reqs.js:87:29
at _rejected (/home/sameera/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:808:24)
at /home/sameera/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:834:30
at Promise.when (/home/sameera/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch (/home/sameera/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:752:41)
at /home/sameera/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:574:44
at flush (/home/sameera/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Error: /home/sameera/.cordova/lib/android/cordova/3.5.1/bin/create: Command failed with exit code 8
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

我还将 Android 添加到 PATH如下所示:
  export PATH=${PATH}:~/home/sameera/Downloads/Softwares/android-studio/sdk/tools
export PATH=${PATH}:~/home/sameera/Downloads/Softwares/android-studio/sdk/platform-tools

最佳答案

我在为 Android 配置平台时遇到了同样的问题。也许您在 android sdk 管理器中没有 API 19 的 SDK 平台(cordova 3.3 或 3.5 使用目标 sdk 19)。查看 this回答更多。

关于android - ionic 平台配置错误: ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25799714/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com