android - Unable to link test support library to application under test -


in our robotium test automation framework, have multiple test projects sharing common functionality. decided create support library used test projects. need link both test projects , test support library application under test, since both of them use resources of application under test.

visualization of situation (arrow means "uses"):

    -----> app-under-test <----    /                           \   /                             \ test-project -------------> test-support-lib 

in eclipse, works fine after set build paths correctly.

however, when try build tests command line - command line building required jenkins - building support library fails with

-compile:
...
    [javac] e:\test-support-lib\src\com\test\support\lib\testsupportutility.java:21: error: package com.app.under.test.r not exist
    [javac]     psolo.getstring(com.app.under.test.r.string.test_string)

i have linked both test , test support lib in similar manner:

  • android update test-project --path e:\test-project --main e:\app-under-test
  • android update test-project --path e:\test-support-lib --main e:\app-under-test

how can use resources of app-under-test in test-support-lib?