Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I added Facebook plugin(Telerik Fork) to my Cordova project in Visual Studio 2015, it was working fine and for no reason every time I compile my app I get this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
 > Could not resolve com.facebook.android:facebook-android-sdk:4.11.+.
 Required by:
 :android:unspecified
 > Failed to list versions for com.facebook.android:facebook-android-sdk.
 > Unable to load Maven meta-data from https://repo1.maven.org/maven2/com/facebook/android/facebook-android-sdk/maven-metadata.xml.
 > Could not GET 'https://repo1.maven.org/maven2/com/facebook/android/facebook-android-sdk/maven-metadata.xml'.
 > Connection to http://127.0.0.1:8888 refused
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error code 1 for command: cmd with args: /s,/c,"D:\Work\myproject\platforms\android\gradlew cdvBuildRelease -b D:\Work\myproject\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"


What I have tried:

When I remove the plugin I can compile the project but I need it.Please help.

Thank you
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900