jdeferred / jdeferred

Java Deferred/Promise library similar to JQuery.

Home Page:jdeferred.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't import some classes in the 1.2.5 release

Gloix opened this issue · comments

commented

I imported the gradle dependency in its version 1.2.5 and tried to declare a Deferred object, but Android Studio couldn't import the proper class. I tried the jar and aar versions but none of them seemed to work. I then used version 1.2.4 and now I get the Deferred class imported properly.

Note however that I could import the DeferredAsyncTask class, however the main types are not visible.

Which dependencies did you define for 1.2.5? AFAIK IntelliJ (Android Studio anyway) should show dependencies on the project explorer (left sidebar) allowing you to look inside the JAR files. Are you able to sot the Deferred class inside the JARs?

commented

By importing with compile 'org.jdeferred:jdeferred-android-aar:1.2.5' or compile 'org.jdeferred:jdeferred-android-aar:1.2.5@aar':
image

By importing version 1.2.4 with compile 'org.jdeferred:jdeferred-android-aar:1.2.4'
image

It seems the core of jdeferred is not added to the dependencies list in version 1.2.5.

I see. The pom for jdeferrrd-android-aar does not define any dependencies at all. @saturnism there's a commented section found in the subprojects build file (lines 157 - 163) that should do the trick.

In the meantime, a workaround is to explicitly add a dependency to jdeferred-core-1.2.5 to your build file.

@aalmiray ptal at the PR. Thanks @Gloix for spotting this.