2011-10-19 9 views
0

を使用して、「アリテスト」、ant testは、エラーメッセージで失敗します。ant -v test実行AndroidのSDKツールのV14にアップグレードすると、最後のプロジェクト構造に既存のプロジェクトを更新した後のAndroid SDKツールのV14

[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です。 助けてください。

+0

これはエラーを示していますか?次の行は「不正な置換」ですか? –

答えて

0

r14ツールの既知の問題です。 http://tools.android.com/knownissues

Testing ant test fails with Syntax error: Bad substitution. A last minute change introduced this error in the Ant rules file. The workaround is to edit /tools/ant/build.xml, line 318 and to change ${manifest.package} with ${tested.manifest.package}. [Issue 20979]

関連する問題