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