ant jar error: Execute failed: java.io.IOException: Cannot run program…${aapt}": error=2, No such file or directory

后端 未结 2 382
攒了一身酷
攒了一身酷 2021-02-01 03:55

I\'m trying to compile a simple Java library for Unity, and after running ant jar, I get the following message:

/Applications/adt-bundle-mac-x86_64-20140702/sdk/         


        
相关标签:
2条回答
  • 2021-02-01 04:34

    Have you updated the Android SDK tools to 24.3.2? This seems to have caused the issue. Add following 4 lines to android-sdk-path/tools/ant/build.xml starting line 484 and hopefully it should solve.

    <property name="aidl" location="${android.build.tools.dir}/aidl${exe}" />
    <property name="aapt" location="${android.build.tools.dir}/aapt${exe}" />
    <property name="dx" location="${android.build.tools.dir}/dx${bat}" />
    <property name="zipalign" location="${android.build.tools.dir}/zipalign${exe}" />
    
    0 讨论(0)
  • 2021-02-01 04:39

    This is fixed in the latest tools update ( https://code.google.com/p/android/issues/detail?id=176488 )

    0 讨论(0)
提交回复
热议问题