我想在带有android sdk的Mac上使用aapt命令(文件夹/build-tools/24.0.1)。但是,每当我尝试使用该命令时,我都会收到未找到该命令的消息(aapt/aapt2)。这在终端和Android Studio中都不起作用。
如果我列出了24.0.1中的可用命令。文件夹中,两个命令旁边都有一个星号,描述为:
A star (*) next to a name means that the command is disabled.如何再次启用这些命令?更新构建工具无济于事。
发布于 2016-09-28 06:29:55
检查您的路径并检查其是否正确。
只需编辑您的~/.bash_profile即可添加以下行:
export PATH=$PATH:/PATH/TO/android-sdk-macosx/build-tools/x.x.xhttps://stackoverflow.com/questions/39735083
复制相似问题