如何解决通过Cloud教程工作的变量问题
我正在阅读本教程,并设法将一切设置为正确。
在对计划进行排队时,我得到了以下与变量有关的错误,并且无法深入研究该问题。
有人对此有何想法?谢谢
希望这将是一个很好的启动和运行方式!
public class SongCollection {
public Song[] songs = new Song[3];
public SongCollection()
{
prepareSongs();
}
private void prepareSongs()
{
Song theWayYouLookTonight = new Song("S1001","The Way You Look Tonight","Michael Buble","a5b8972e764025020625bbf9c1c2bbb06e394a60?cid=null",4.39,"michael_buble_collection","https://www.youtube.com/watch?v=IKpNL2Nm9SM");
Song billieJean = new Song("S1002","Billie Jean","Michael Jackson","4eb779428d40d579f14d12a9daf98fc66c7d0be4?cid=null",5.45,"billie_jean","https://www.youtube.com/watch?v=Zi_XLOBDo_Y");
Song outinSpace = new Song("S1003","Out in Space","Whiz Khalifa","3d691281fae7d4ba8c5907887d2a31ce064891b3?cid=null",2.83,"wiz_khalifa","https://www.youtube.com/watch?v=JNsWBRNLLjc");
songs[0] = theWayYouLookTonight;
songs[1] = billieJean;
songs[2] = outinSpace;
}
}
解决方法
似乎您忘记了“配置工作空间变量”步骤,您需要设置两个环境变量(AWS_SECRET_ACCESS_KEY,AWS_ACCESS_KEY_ID),然后所有设置都应按预期工作。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。