0
升級到Android SDK工具V14和更新現有項目,最後項目結構後,ant test
失敗,出現錯誤消息:運行「螞蟻測試」使用Android SDK工具V14
ant -v test
[echo] Running tests ...
[exec] Current OS is Mac OS X
[exec] Executing '/opt/local/share/java/android-sdk-mac_x86/platform-tools/adb' with arguments:
[exec] 'shell'
[exec] 'am'
[exec] 'instrument'
[exec] '-w'
[exec] '-e'
[exec] 'coverage'
[exec] 'false'
[exec] 'xxx.xxx/xxx.xxx'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
test:
[echo] Running tests ...
[exec] Syntax error: Bad substitution`
但直接執行命令adb shell am instrument
沒問題。 我的環境是Mac上的Apache Ant(TM)1.8.2版。 請幫忙。
這是否顯示錯誤 - 下一行是「錯誤的替代」? –