android - Robotium - Eclipse 中的 API 错误

标签 android eclipse testing robotium

我刚刚开始使用 Robotium Recorder 来自动化 android 测试,每次我尝试录制脚本时都会显示错误。以下是错误详细信息。

我已经在 Eclipse 中安装了 Robotium Recorder 并创建了一个测试项目。我尝试使用 Robotium Recorder 记录测试,但是当我选择 New Robotium Test 时,即使相应的 API 状态显示为已安装在 SDK Manager 中,也会显示以下错误。

enter image description here

enter image description here

enter image description here 请注意,我使用的是 Luna SR1 (4.4.1) 版本的 Eclipse Luna,2.1.17 版本的 Robotium Recorder,并且还在测试项目中使用了 JAR 文件 robotium-solo-5.0.1。

enter image description here

寻求任何建议或帮助..

最佳答案

首先,切换到最新的Robotium版本2.1.21

确保 Android SDK 文件夹 (Android\sdk\tools\lib\find_java.exe) 中的 Used_Java.exe 与您运行的 Windows 版本兼容。检查计算机的系统信息,了解您是否需要 x86(32 位)或 x64(64 位)版本的程序。

如果 Used_Java.exe 与 windows 兼容,那么还要确保与系统中运行的 windows 不兼容的 Android SDK 不会被复制或出现在系统中,即使它没有被 eclipse 使用。如果它存在于系统中,则将其删除并重新启动 eclipse。现在你可以通过 Robotium Recorder 来记录测试了:)

关于android - Robotium - Eclipse 中的 API 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26623044/

相关文章:

testing - 获取一个字符串以用于 cypress 中的 .visit() 调用

python - 在Eclipse Pydev控制台和Idle中打印Unicode

eclipse -/lib/x86_64-linux-gnu/libz.so.1 : version `ZLIB_1.2.9' not found

java - 如何测试从其客户端接收多个请求的 Web 服务?

android - 如何在 Broadcast Receiver 的接收事件中使用倒数计时器?

java - Eclipse 中的默认导入

python - Django @override_settings 不允许字典?

java - gradle 任务 jar 不工作

android - 动态组合多个 Retrofit Observable

android - 自检 APK 的签名