我已经使用phonegap创建了一个应用。当我们使用https://build.phonegap.com/生成错误时,我使用了Cordova社交共享插件
Error - A plugin you are using requires a preference: ANDROID_SUPPORT_V4_VERSION
答案 0 :(得分:0)
您的问题缺少堆栈跟踪和其他详细信息。但是,插件
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
因此删除插件和正确的版本
cordova plugin rm cordova-plugin-x-social-sharing
cordova plugin add cordova-plugin-x-social-sharing@5.4.0
希望这会有所帮助。