• 还老出现以下问题:
    BUILD FAILED
    D:\adt-bundle\sdk\tools\ant\uibuild.xml:183: Compile failed; see the compiler error output for details.

    Total time: 1 second
    ----jar 包路径: "E:\android-workspace\Test\bin\Demoone.jar.jar"
    ----adb push "E:\android-workspace\Test\bin\Demoone.jar.jar" /data/local/tmp/
    ----execCmd: adb push "E:\android-workspace\Test\bin\Demoone.jar.jar" /data/local/tmp/
    adb: error: cannot stat 'E:\android-workspace\Test\bin\Demoone.jar.jar': No such file or directory
    ----runTest: adb shell uiautomator runtest Demoone.jar.jar --nohup -c com.wch.Demo1#testPress
    ----execCmd: adb shell uiautomator runtest Demoone.jar.jar --nohup -c com.wch.Demo1#testPress
    Error: /data/local/tmp/Demoone.jar.jar does not exist

    Usage: uiautomator [options]

    Available subcommands:

    help: displays help message

    runtest: executes UI automation tests

    runtest [options]

    : < -c | -e class >

    : a list of jar files containing test classes and dependencies. If

    the path is relative, it's assumed to be under /data/local/tmp. Use

    absolute path if the file is elsewhere. Multiple files can be

    specified, separated by space.

    : a list of test class names to run, separated by comma. To

    a single method, use TestClass#testMethod format. The -e or -c option

    may be repeated. This option is not required and if not provided then

    all the tests in provided jars will be run automatically.

    options:

    --nohup: trap SIG_HUP, so test won't terminate even if parent process

    is terminated, e.g. USB is disconnected.

    -e debug [true|false]: wait for debugger to connect before starting.

    -e runner [CLASS]: use specified test runner class instead. If

    unspecified, framework default runner will be used.

    -e : other name-value pairs to be passed to test classes.

    May be repeated.

    -e outputFormat simple | -s: enabled less verbose JUnit style output.

    dump: creates an XML dump of current UI hierarchy

    dump [--verbose][file]

    [--compressed]: dumps compressed layout information.

    [file]: the location where the dumped XML should be stored, default is

    /sdcard/window_dump.xml

    events: prints out accessibility events until terminated


    ---FINISH DEBUG----


  • #1 楼 @342164796 可是没人回答我的问题。