Closed MarcBalaban closed 5 years ago
in ionic project Spec:
config.xml:
<feature name="SocialSharing">
<param name="android-package" value="cordova-plugin-x-socialsharing.SocialSharing" />
<param name="ios-package" value="SocialSharing" />
</feature>
or
<feature name="SocialSharing">
<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
<param name="ios-package" value="SocialSharing" />
</feature>
get the same error:
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/smirnovev/ionictest/platforms/android/build.gradle' line: 254
* 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.
BUILD FAILED
any solution?
same here +1
same here +1
you may install v5.4.0. it helps for me. This error is on v.5.4.3
same here +1
you may install v5.4.0. it helps for me. This error is on v.5.4.3
may I see your config.xml file?
same here +1
you may install v5.4.0. it helps for me. This error is on v.5.4.3
may I see your config.xml file?
part of it is above with SocialSharing values
same here +1
you may install v5.4.0. it helps for me. This error is on v.5.4.3
Hi, sorry to bother you with a dumb question, i want to install v5.4.0 but i have no idea how to do it. At the moment i just write what's in the pic below. PLEASE, can you tell me how to choose the mentioned version?
same here +1
you may install v5.4.0. it helps for me. This error is on v.5.4.3
Hi, sorry to bother you with a dumb question, i want to install v5.4.0 but i have no idea how to do it. At the moment i just write what's in the pic below. PLEASE, can you tell me how to choose the mentioned version?
cordova plugin remove [PLUGIN_ID] cordova plugin add [PLUGIN_ID]@[VERSION]
@UnknownDino @fecogc
you can specify:
<gap:plugin name="cordova-plugin-x-socialsharing" source="npm" spec="5.4.0" />
same here +1
you may install v5.4.0. it helps for me. This error is on v.5.4.3
Works for me! Thanks!!!
Was getting the same issue while building a cordova app with visual studio. Removed the "gap:"
from the beginning and added the following line in config.xml
<plugin name="cordova-plugin-x-socialsharing" spec="5.4.0" src="npm" />
And it worked like a charm. Thanks a lot @MarcBalaban and @knyazz :+1:
The current version of the plugin is 5.6.3. So you are saying that the fix for the issue is downgrading to version 5.4.0?
5.4.0 is the last version that has the version hardcoded:
<framework src="com.android.support:support-v4:24.1.1+" />
so it means that any version after that won't work? (see diff: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/compare/5.4.0...5.4.4#)
downgrading worked for me last year, but have not checked releases for a while, so perhaps has been fixed?
Spec:
Problem:
Build is working on Windows and IOS without issues, but Android Phonegap build is erroring out.
Solution:
Within your config.xml -- use:
instead of: