首页 > 解决方案 > 使用 node.js 和 Heroku 应用程序设置 SDK 时出错?

问题描述

我正在尝试将通过 Git 连接到 Heroku 的应用程序部署到 Heroku,但我收到一条错误消息:

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

   * What went wrong:
   Could not determine the dependencies of task ':app:assemble'.
   > Could not create task ':app:assembleRelease'.
      > Could not create task ':app:lintVitalRelease'.
         > SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/tmp/build_f417db2c/local.properties'.

我已经通过 android studios 连接了我的 SDK,并通过为用户检查系统变量将其设置为我的计算机中的环境变量。我还已经在我的 local.properties 文件中本地设置了 sdk.dir = 我的 SDK 路径。有任何想法吗?

标签: node.jsgitheroku

解决方案


推荐阅读