【问题标题】:Unable to upload an APK file to hockey app via their API无法通过他们的 API 将 APK 文件上传到曲棍球应用程序
【发布时间】:2015-02-24 19:06:31
【问题描述】:

我无法通过他们提供的 API 将 android apk 上传到 hockeyapp。当我使用时

curl \ -F "status=2" \
-F "notify=1" \ 
-F "notes=Some new features and fixed bugs." \ 
-F "notes_type=0" \
-F "apk=@app-release.apk" \
-H "X-HockeyAppToken: MY_TOKEN" \https://rink.hockeyapp.net/api/2/apps/MY_APP_ID/app_versions/upload  

我收到一个错误:{"status":null}

当我尝试时

 curl \ 
-F "status=2" \ 
-F "notify=1" \
-F "notes=Some new features and fixed bugs." \ 
-F "notes_type=0" \ -F "apk=@app-release.apk" \
-H "X-HockeyAppToken: MY_TOKEN" \ https://rink.hockeyapp.net/api/2/apps/upload

发生错误:{"status":"error","message":"找不到文件。请检查您的文件不是目录或捆绑包。"}

请给我一个解决方案。拖放对我有用。但我需要通过他们的 API 来完成。我使用 Team City 作为我的 CI 服务器。

【问题讨论】:

标签: android curl continuous-integration hockeyapp teamcity-9.0


【解决方案1】:

构建的参数在所有平台上都称为“ipa”,即-F "ipa=@app-release.apk" 是正确的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多