2

我正在尝试将 AWS Simple DB 与 androidSdk 1.3.3 一起使用,这是我的连接代码

AWSCredentials credits = new BasicAWSCredentials("apkey","secretkey");
AmazonSimpleDBClient client = new AmazonSimpleDBClient(credits);

我添加了必要的 Jar,但我得到一个指向 AwsCredentials 的异常,我的 logcat 说

E/AndroidRuntime(587): java.lang.NoClassDefFoundError: com.amazonaws.auth.BasicAWSCredentials 

我能知道我错在哪里吗?

LogCat 报告:

08-16 17:33:04.484: E/AndroidRuntime(587): FATAL EXCEPTION: main
08-16 17:33:04.484: E/AndroidRuntime(587): java.lang.NoClassDefFoundError: com.amazonaws.auth.BasicAWSCredentials
08-16 17:33:04.484: E/AndroidRuntime(587):  at com.Ews.EwsActivity.<init>(EwsActivity.java:24)
08-16 17:33:04.484: E/AndroidRuntime(587):  at java.lang.Class.newInstanceImpl(Native Method)
08-16 17:33:04.484: E/AndroidRuntime(587):  at java.lang.Class.newInstance(Class.java:1319)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.os.Handler.dispatchMessage(Handler.java:99)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.os.Looper.loop(Looper.java:137)
08-16 17:33:04.484: E/AndroidRuntime(587):  at android.app.ActivityThread.main(ActivityThread.java:4424)
08-16 17:33:04.484: E/AndroidRuntime(587):  at java.lang.reflect.Method.invokeNative(Native Method)
08-16 17:33:04.484: E/AndroidRuntime(587):  at java.lang.reflect.Method.invoke(Method.java:511)
08-16 17:33:04.484: E/AndroidRuntime(587):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
08-16 17:33:04.484: E/AndroidRuntime(587):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
08-16 17:33:04.484: E/AndroidRuntime(587):  at dalvik.system.NativeStart.main(Native Method)
4

0 回答 0