构建用于android的cordova app时出错

时间:2014-11-05 23:05:05

标签: android cordova admob google-play-services cordova-plugins

我有一个正在构建好的cordova应用程序,因为我添加了cordova admob插件(来自https://github.com/appfeel/admob-google-cordova)。这个插件似乎使用google-play-services。添加后,我开始执行cordova build android时出现以下错误:

-code-gen:
[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: /Users/cmiller/cordova/EM0021/platforms/android/com.google.playservices/google-play-services_lib/bin/res/crunch

BUILD FAILED
/Users/cmiller/Library/android/android-sdk-macosx/tools/ant/build.xml:653: The following error occurred while executing this line:
/Users/cmiller/Library/android/android-sdk-macosx/tools/ant/build.xml:698: null returned: 1

Total time: 14 seconds

/Users/cmiller/cordova/EM0021/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: ant with args: debug,-f,/Users/cmiller/cordova/EM0021/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Error: /Users/cmiller/cordova/EM0021/platforms/android/cordova/build: Command failed with exit code 8
    at ChildProcess.whenDone (/usr/local/lib/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)

我不记得我在项目中添加了google-play-services。我注意到这个插件下载了google-play-services库(它似乎是它的依赖)。 google-play-services和/或com.google.admob插件是否存在任何问题?

0 个答案:

没有答案