在Android中Studio中使用亚马逊Web服务SDK为Android [英] Using Amazon Web Service SDK for Android in Android Studio

查看:237
本文介绍了在Android中Studio中使用亚马逊Web服务SDK为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想利用AWS的S3存储存储图像的移动应用程序,但我不能够编译我的应用程序。我在我的库目录中的.jar文件。在我的build.gradle文件的相关部分我有:

I'm trying to make use of the AWS S3 storage to store images for a mobile app, but I'm not able to compile my app. I have the .jar files in my libs directory. In the dependencies section of my build.gradle file I have:

dependencies {       
    compile "com.amazonaws.services.s3:1.6.1"
}

我已经试过各种组合我能想到的。 com.amazonaws.services.s3:1.6.1,com.amazonaws.services:s3:1.6.1,com.amazonaws:服务:1.6.1 ......但约,说找不到COM我总是得到一个错误。 amazonaws.services.s3:1.6.1。 (与任何我穿上编译行中的错误)。

I've tried every combination I can think of. com.amazonaws.services.s3:1.6.1, com.amazonaws.services:s3:1.6.1, com.amazonaws:services:1.6.1...but I always get an error about that says Could not find com.amazonaws.services.s3:1.6.1. (with whatever I put on the compile line in the error).

我找不到有关获取此SDK与Android工作室的工作任何东西,真的不知道有足够的了解摇篮知道如何得到它的工作。有什么建议么?任何人都已经有了这方面的工作?

I can't find anything about getting this SDK to work with Android Studio and don't really know enough about Gradle to know how to get it to work. Any suggestions? Anyone already have this working?

推荐答案

找到了答案自己,离开这个在这里,因为答案永远不会匹配的搜索字词为这个特定的问题。

Found an answer myself, leaving this here since the answer will never match search terms for this specific problem.

请按照就在这里接受的答案的指示:<一href=\"http://stackoverflow.com/questions/16779959/android-studio-importing-external-library-jar\">Android工作室 - 导入外部库/罐

Follow the directions on the accepted answer here: Android Studio - Importing external Library/Jar

像帖子下方它说,你没有从Android的工作室,就建设 - >重建项目

Like the post right below it says, you don't have to exit from Android Studio, just Build->Rebuild Project

这篇关于在Android中Studio中使用亚马逊Web服务SDK为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆