我收到NoSuchMethodError,因为aws sdk使用API Level 9方法,即http://developer.android.com/reference/javax/net/ssl/SSLContext.html#getDefault(),SDK应该支持API Level 7。
12-19 19:05:38.621: E/AndroidRuntime(15406): FATAL EXCEPTION: main
12-19 19:05:38.621: E/AndroidRuntime(15406): java.lang.NoSuchMethodError: javax.net.ssl.SSLContext.getDefault
12-19 19:05:38.621: E/AndroidRuntime(15406): at com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:94)
12-19 19:05:38.621: E/AndroidRuntime(15406): at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:122)
12-19 19:05:38.621: E/AndroidRuntime(15406): at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:64)
12-19 19:05:38.621: E/AndroidRuntime(15406): at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:305)
12-19 19:05:38.621: E/AndroidRuntime(15406): at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:287)
我应该报告这个问题吗? 我该如何暂时解决此问题?
答案 0 :(得分:0)
确保将aws-distro中的第三方库包含到您的类路径中。我有一个工作的S3应用程序api级别8.