在PGB上构建失败,并显示错误-您使用的插件需要使用偏好设置:ANDROID_SUPPORT_V4_VERSION [英] build fails on PGB with Error - A plugin you are using requires a preference: ANDROID_SUPPORT_V4_VERSION

查看:245
本文介绍了在PGB上构建失败,并显示错误-您使用的插件需要使用偏好设置:ANDROID_SUPPORT_V4_VERSION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将cordova-plugin-print(by katzer)更新为v0.8.0,但是在使用PhoneGap Build进行构建时失败.它抛出此错误

I've updated the cordova-plugin-print (by katzer)to v0.8.0 but it fails when building with PhoneGap Build. It throws this error

错误-您使用的插件需要使用偏好设置: ANDROID_SUPPORT_V4_VERSION

Error - A plugin you are using requires a preference: ANDROID_SUPPORT_V4_VERSION

位置:构建文件 '/var/gimlet/tmp/47255016036300/3460831/project/build.gradle'行: 276

Where: Build file '/var/gimlet/tmp/47255016036300/3460831/project/build.gradle' line: 276

出了什么问题:评估根项目项目"时出现问题.

What went wrong: A problem occurred evaluating root project 'project'.

无法获取对象的未知属性"ANDROID_SUPPORT_V4_VERSION" 类型的 org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Could not get unknown property 'ANDROID_SUPPORT_V4_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

有人愿意帮助吗?

推荐答案

您的问题缺少堆栈跟踪和其他详细信息.但是,插件

Your question is missing stack trace and other details. However, the plugin

cordova-plugin-x-socialsharing 

有问题,并失败:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/mj/projects/benara-sales-client/platforms/android/build.gradle' line: 266

* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not get unknown property 'ANDROID_SUPPORT_V4_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

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

要修复,您可以安装v5.4.0

To fix, you may install v5.4.0

因此删除插件和正确的版本

so remove the plugin and the correct version

cordova plugin rm cordova-plugin-x-social-sharing
cordova plugin add cordova-plugin-x-social-sharing@5.4.0

希望这会有所帮助.

这篇关于在PGB上构建失败,并显示错误-您使用的插件需要使用偏好设置:ANDROID_SUPPORT_V4_VERSION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆