2016-11-22 13 views
0

私はGithubに保存されているプロジェクトを持っており、にはTravisがあります。この組み合わせが機能します。今すぐこのコードをHerokuに展開しようとしています。しかし、(git push heroku master付き)Herokuのに私のプッシュは私に、このエラーが返されます。Git/Heroku:SDKの場所が見つかりません

remote:  FAILURE: Build failed with an exception. 
    remote: 
    remote:  * What went wrong: 
    remote:  A problem occurred configuring project ':app'. 
    remote:  > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. 
    remote: 
    remote:  * Try: 
    remote:  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 
    remote: 
    remote:  BUILD FAILED 
    remote: 
    remote:  Total time: 40.505 secs 
    remote: 
    remote: !  ERROR: Failed to run Gradle! 
    remote:  We're sorry this build is failing. If you can't find the issue in application 
    remote:  code, please submit a ticket so we can help: https://help.heroku.com 
    remote:  You can also try reverting to the previous version of the buildpack by running: 
    remote:  $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-gradle#previous-version 
    remote: 
    remote:  Thanks, 
    remote:  Heroku 
    remote: 
    remote: !  Push rejected, failed to compile Gradle app. 
    remote: 
    remote: !  Push failed 
    remote: Verifying deploy... 
    remote: 
    remote: !  Push rejected to (projectName). 
    remote: 
    To https://git.heroku.com/(projectName).git 
    ! [remote rejected] master -> master (pre-receive hook declined) 
    error: failed to push some refs to 'https://git.heroku.com/(projectName).git' 

それは私がlocation.propertiesファイルにSDKの場所を区別する必要があると述べています。

どうすればいいですか? Travisは自動的にすべてのビルドにSDKをインストールしませんか?どのように私はdinamically作成されたものを指すことができますか?

私には何が欠けていますか?

答えて

0

ファイルの末尾にgit push heroku masterのファイルをテストしただけですか?または、別のdeploy:ステップで実行していますか?

git pushを使用してデプロイする代わりに、Travis CI Heroku deployment addonを使用してみましたか?多分それはうまくいくでしょう。

関連する問題