我开发了一个混合应用程序,我正在使用“phonegap-googlemaps-plugin”。这个插件需要另外两个在项目中自动下载和安装的插件。依赖关系是:
com.google.playservices
和plugin.http.request
使用Cordova-CLI,由于“playservices”插件中的特定目录,安装带有依赖项的插件将无法第一次构建项目。为了克服这个问题,我必须在我的项目中运行“ant clean”,并删除/重命名该目录。现在,我正在使用英特尔XDK并上传我的应用程序并成功安装了大部分插件并在我的设备上运行该应用程序。当我试图安装谷歌播放服务插件时,由于我上面描述的原因(我已经完成了日志),它无法构建。我现在该如何克服这个问题? 我附加了显示失败错误的日志部分
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] invalid resource directory name: .../App/platforms/android/com.google.playservices/google-play-services_lib/bin/res/crunch
BUILD FAILED
/Developer/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/Developer/android-sdk-linux/tools/ant/build.xml:698: null returned: 1
Total time: 5 seconds
Error code 1 for command: ant with args: release,-f,.../App/platforms /android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Command finished with error code 2: .../App/platforms/android/cordova/build --release
Error: .../App/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/Developer/cordova/3.5.0-0.2.7/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
提前致谢。