Phonegap错误android sdk build.xml:950:null返回:1

 博客百度2 发布于 2023-02-09 02:53

我正在尝试在android sdk中启动phonegap 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 "/Users/me/Projects/one/platforms/android/build.xml"": 
BUILD FAILED
/Applications/Android/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:932: The following error occurred while executing this line:
/Applications/Android/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:950: null returned: 1

我遵循了本指南http://docs.phonegap.com/en/2.2.0/guide_getting-started_android_index.md.html,但它无法正常工作.

可能是什么导致了这个?

1 个回答
  • 你很可能也得到这条线

    无效的资源目录名称:/ YOUR/PROJECT/ROOT/PATH/bin/res/crunch

    在错误代码之前,所以打开终端并输入以下内容:

    cd YOUR/PROJECT/ROOT/PATH
    
    rm -fR $(find . -type d -name crunch|xargs)
    

    2023-02-09 03:26 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有