我有一个完全在Cordova 3.4上构建的
Android Cordova应用程序.我刚刚更新到Cordova 3.5.0并且构建失败,显示以下错误:
-code-gen: [mergemanifest] Found Deleted Target File [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] Found Deleted Target File [aapt] Generating resource IDs... [aapt] D:\Proyectos\Trialtea\Proyecto 31 - Aplicaciones HTML5\05. Aplicaciones Google Play\phonegap_projects\InglesEn100DiasTurbo\platforms\andro id\ant-build\AndroidManifest.xml:2: error: Error: Float types not allowed (at 'versionCode' with value 'NaN'). BUILD Failed D:\Recursos\Android_Development\adt-bundle-windows-x86_64-20130729\sdk\tools\ant\build.xml:653: The following error occurred while executing this line : D:\Recursos\Android_Development\adt-bundle-windows-x86_64-20130729\sdk\tools\ant\build.xml:698: null returned: 1 Total time: 5 seconds Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,D:\Proyectos\Trialtea\Proyecto 31 - Aplicaciones HTML5\05. Aplicaciones Google Play\phoneg ap_projects\InglesEn100DiasTurbo\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: cmd: Command Failed with exit code 2 at ChildProcess.whenDone (C:\Users\Albert\AppData\Roaming\npm\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)
第15行有一个关于错误的错误:浮点类型不允许(在’versionCode’中,值为’NaN’,我不知道它为什么会发生.我在项目的根目录中有config.xml文件,版本代码设置为3,但由于某种原因,当我构建项目时,AndroidManifest.xml设置为versionCode =“NaN”.
最后显示的错误我不知道它意味着什么或者它是否与上面的错误有关.
任何人都可以帮我解决这个问题吗?
哦,在通过npm更新Cordova后,我还使用cordova platform update android更新了项目文件夹中的Android平台.