使用Phonegap构建Android应用程序时出错

时间:2015-12-08 01:45:07

标签: javascript android cordova ionic phonegap-build

出于某种原因,每次我尝试运行它时,我的android phonegap构建失败。我似乎无法弄清楚问题是什么。

我正在使用最新版本的Cordova(5.3.3)并使用Android studio(我认为)下载了适用于Android的正确SDK。

任何想法我做错了什么?

以下是我的CLI日志:

FAILURE: 
Build failed with an exception.



* What went wrong:

Execution failed for task ':prepareDebugDependencies'.

> 
javax.xml.xpath.XPathExpressionException: org.xml.sax.SAXParseException; lineNumber: 41; columnNumber: 94; The prefix "tools" for attribute "tools:overrideLibrary" associated with an element type "uses-sdk" is not bound.



* Try:

Run with --stacktrace
 option to get the stack trace. Run with --info
 or 
--debug
 option to get more log output.



BUILD FAILED




Total time: 4.325 secs


/Users/macuser/Desktop/bacon copy/bacontest/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                    ^

Error code 1 for command: /Users/macuser/Desktop/bacon copy/bacontest/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/macuser/Desktop/bacon copy/bacontest/platforms/android/build.gradle,-Dorg.gradle.daemon=true

ERROR building one of the platforms: Error: /Users/macuser/Desktop/bacon copy/bacontest/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project

Error: /Users/macuser/Desktop/bacon copy/bacontest/platforms/android/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:

5)

0 个答案:

没有答案