EgorBo / Xamarin.GradleBindings

VS add-in. Creates Xamarin.Android Binding Projects using gradle
https://visualstudiogallery.msdn.microsoft.com/3a3257c7-473a-4790-9610-9a561eed0b8c
MIT License
146 stars 19 forks source link

Build failed with an exception #8

Closed dev-masih closed 6 years ago

dev-masih commented 6 years ago

i was going to build CircularFloatingActionMenu Library and build failed with exception. here is the log

Gradle log:
========

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Masih\AppData\Local\Temp\Xamarin.GradleBindings\71db05\build.gradle' line: 5

* What went wrong:
A problem occurred evaluating root project '71db05'.
> Could not resolve all files for configuration ':detachedConfiguration1'.
   > Could not resolve com.oguzdev:CircularFloatingActionMenu:1.0.2.
     Required by:
         project :
      > Could not resolve com.oguzdev:CircularFloatingActionMenu:1.0.2.
         > Could not get resource 'https://jcenter.bintray.com/com/oguzdev/CircularFloatingActionMenu/1.0.2/CircularFloatingActionMenu-1.0.2.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/oguzdev/CircularFloatingActionMenu/1.0.2/CircularFloatingActionMenu-1.0.2.pom'.
               > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/5.153.35.248] failed: Connection timed out: connect

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

* Get more help at https://help.gradle.org

BUILD FAILED in 24s

Original script:
========
apply plugin: 'java'

def resolveDependencyString(String dependencyString) {
    def dependency = dependencies.create(dependencyString)
    configurations.detachedConfiguration(dependency).setTransitive(false).resolve()
}

def resolveDependencyStringTransitive(String dependencyString) {
    def dependency = dependencies.create(dependencyString)
    configurations.detachedConfiguration(dependency).setTransitive(true).resolve()
}

repositories { 
    maven { url "C:/Developments/android-sdk/extras/android/m2repository/" } // will be replaced by the add-in
    jcenter()
    maven { url "https://jitpack.io" }
    // add custom repositores here
 }

task getDeps(type: Copy) {
  def resultFileAll = new File("C:/Users/Masih/AppData/Local/Temp/Xamarin.GradleBindings/71db05/result_main.txt")
  def resultFileMain = new File("C:/Users/Masih/AppData/Local/Temp/Xamarin.GradleBindings/71db05/result_all.txt")
  resolveDependencyString('com.oguzdev:CircularFloatingActionMenu:1.0.2').sort().each { resultFileMain.append('\n' + it.toString()) }
  resolveDependencyStringTransitive('com.oguzdev:CircularFloatingActionMenu:1.0.2').sort().each { resultFileAll.append('\n' + it.toString()) }
}

Stack-Trace:
========
   at GradleBindings.Gradle.ExtractDependencies(String dependency, String androidSdkHome, String& workingDirectory, String customRepositories, Boolean detailedLog)
   at GradleBindings.BindingProjectGenerator.<>c__DisplayClass7_1.<Generate>b__1()