gpt4 book ai didi

android - PhoneGap - Android 构建抛出错误 - 构建失败 -\ant\build.xml :892

转载 作者:行者123 更新时间:2023-11-30 03:02:51 25 4
gpt4 key购买 nike

当我尝试构建 Android 平台时,我遇到了以下错误,当我搜索修复时发现了这个 solution并通过下载不同的构建工具进行了相同的尝试,但没有成功,两天后它正常工作(不确定它是如何工作的)并且我能够执行构建并且在某个时候再次出现相同的错误。

使用 PhoneGap 3.3.0

>phonegap build android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] compiling Android...
[error] An error occurred while building the android project.Error executing "ant debug -f "C:\dev\phonegap\web-service\platforms\android\build.xml"": BUILD FAILED
C:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\dev\tools\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:284: null returned: 1

Total time: 7 seconds

很少低于错误:

>phonegap build android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] compiling Android...
[error] An error occurred while building the android project.

如果我再次运行构建命令,它会抛出第一个错误。

谢谢。

最佳答案

确保您的 android SDK 位置在 local.properties 文件中正确分配。

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.

# location of the SDK. This is only used by Ant
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=/Applications/android-sdk

enter image description here

关于android - PhoneGap - Android 构建抛出错误 - 构建失败 -\ant\build.xml :892,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22299751/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com