我正在尝试从 cloudwatch 获取 CPU 利用率,但我遇到了错误,无法弄清楚出了什么问题。
这就是我在 Logcat 中得到的:
E/dalvikvm(22587): Could not find class 'com.amazonaws.auth.DefaultAWSCredentialsProviderChain', referenced from method com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.<init>
E/AndroidRuntime(22587): java.lang.NoSuchFieldError: com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.timeOffset
E/AndroidRuntime(22587): at com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.invoke(Unknown Source)
E/AndroidRuntime(22587): at com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.getMetricStatistics(Unknown Source)
E/AndroidRuntime(22587): at com.abcd.abc.AWSCloudwatchActivity.findCloudWatchData(AWSCloudwatchActivity.java:106)
提前致谢。