Cordova android平台安装失败并出现错误:处理操作时出错!试图恢复

时间:2015-04-20 13:48:05

标签: android cordova cordova-plugins cordova-cli

我们有自动脚本来安装cordova插件并安装所有的cordova平台,最后构建二进制文件。设置使用了很长时间。从今天开始,在安装Android平台时,构建开始失败,在处理操作期间出现错误错误!试图恢复......

记录:

Creating android project...
Creating Cordova project for the Android platform:
    Path: platforms\android
    Package: com.diona.mobility.clientApplication
    Name: Client Application
    Android target: android-19
Copying template files...
Running: android update project --subprojects --path "platforms\android" --target android-19 --library "CordovaLib"
Resolved location of library project to: E:\Products\Worksapce\dimas\build\clients\ClientApplication\full\cordova\platforms\android\CordovaLib
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'ClientApplication'.
If you wish to change it, edit the first line of build.xml.
Added file E:\Products\Worksapce\dimas\build\clients\ClientApplication\full\cordova\platforms\android\build.xml
Added file E:\Products\Worksapce\dimas\build\clients\ClientApplication\full\cordova\platforms\android\proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'CordovaLib'.
If you wish to change it, edit the first line of build.xml.
Added file E:\Products\Worksapce\dimas\build\clients\ClientApplication\full\cordova\platforms\android\CordovaLib\build.xml
Added file E:\Products\Worksapce\dimas\build\clients\ClientApplication\full\cordova\platforms\android\CordovaLib\proguard-project.txt

Project successfully created.
Installing "com.phonegap.plugin.mobile-accessibility" for android
Fetching plugin "https://github.com/apache/cordova-plugin-device.git" via git clone
Installing "cordova-plugin-device" for android
Fetching plugin "https://github.com/apache/cordova-plugin-network-information.git" via git clone
Installing "cordova-plugin-network-information" for android
Installing "com.pushwoosh.plugins.pushwoosh" for android
Installing "de.appplant.cordova.plugin.email-composer" for android
Installing "de.appplant.cordova.plugin.local-notification" for android
Error during processing of action! Attempting to revert...

有人知道这个错误吗?提前谢谢。

2 个答案:

答案 0 :(得分:1)

我认为cordova插件有问题。就像在这篇文章中所描述的那样:Broken BarcodeScanner Plugin我会说问题是关于......与插件。

你说所有人都工作好几周,所以我不会担心你的剧本。为其他用户工作的解决方案是从gitHub复制插件并从本地路径安装它。

git clone https://github.com/pathtoplugin.git

cd to your Cordova project.

Cordova plugin add InsertPath\BarcodeScanner

答案 1 :(得分:1)

浪费了几个小时后发现这个构建失败是因为最新的com.phonegap.plugin.mobile-accessibility插件中的依赖项更改。删除此插件解决了错误(没有其他选项,因为同一个插件没有以前标记的工作版本)。