Search code examples
android-testingselendroid

Error occurred while launching Selendroid Server


I downloaded the jar and tried to launch the selendroid server with the command:

java -jar selendroid-standalone-0.8.0-with-dependencies.jar -app selendroid-test-app-0.8.0.apk

But it seems to be giving me this error:

SEVERE: Error occurred while building server: An error occurred while resigning the app 'selendroid-test-app-0.8.0.apk'

Can anyone help me with this?


Solution

  • I did some research and found a list of things required to make selendroid work on Windows:

    Java JDK (minimum 1.6) must be installed and JAVA_HOME configured to point to that JDK
    (tools like the jarsigner should be present in the JDK.)

    The Android SDK maynot have all the required tools and you must download specific tools through the android SDK manager:

    1. Open the Android SDK Manager window
    2. Select the Tools checkbox.
    3. Select the checkbox for the latest Android SDK.
    4. From the Extras folder, select the checkbox for the Android Support Library.
    5. Click the Install packages… button to complete the download and installation.

    ANDROID_HOME variable should point to the SDK:

    set ANDROID_HOME=C:\${installation location}\SDK
    set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools


    (This is only for Windows. For other OS you can check this link: http://spring.io/guides/gs/android/)