AndroidSwipeLayout icon indicating copy to clipboard operation
AndroidSwipeLayout copied to clipboard

cannot resolve methods setDragEdges and setBottomViewIds.

Open iAviatorJose opened this issue 11 years ago • 15 comments

I have used the new compile statement compile "com.daimajia.swipelayout:library:1.1.8@aar" But i get the following error: cannot Resolve method setDragEdges and setBottomViewIds and Also the same for SwipeLayout.EMPTY_LAYOUT.

Following is image Describing the Problem swipe

iAviatorJose avatar Feb 26 '15 10:02 iAviatorJose

I think the new changes made by @HarshEvilGeek have not been reflected in the new version,

iAviatorJose avatar Feb 26 '15 10:02 iAviatorJose

Considering that the methods that aren't resolved are from the newer code, I'm guessing that you didn't do a clean build (you'll need to, otherwise gradlew won't rebuild the required files). Or you haven't updated your code after my changes were merged.

HarshEvilGeek avatar Feb 26 '15 10:02 HarshEvilGeek

I did try clean and rebuilding the project even that did not help me. So i made a sample project with the new Compile Statement still got the same error. The image above posted is of the sample project i tried.

iAviatorJose avatar Feb 26 '15 12:02 iAviatorJose

Hello, I'm having the same problem! but sample1.setDragEdge(SwipeLayout.DragEdge.Right); it's working!

I've tried clean the proyect as well!

Studentessa avatar Feb 26 '15 16:02 Studentessa

Yup setDragEdge(..) is from the older version 1.1.7 but for setDragEdges(..) we are getting this problem

iAviatorJose avatar Feb 27 '15 04:02 iAviatorJose

I'm using eclipse, so I'm using the lib as .jar. I thought it could be related to that, may be the .jar file isn't updated! (but AviatorJose is using AndroidStudio, :s )

Studentessa avatar Feb 27 '15 08:02 Studentessa

@Studentessa i have tried both the jar and the compile statement in Android Studio bot are not working

iAviatorJose avatar Feb 27 '15 08:02 iAviatorJose

@daimajia and @HarshEvilGeek friends did you find any solution to this issue ?

iAviatorJose avatar Mar 02 '15 03:03 iAviatorJose

It would be great to have the drag multiple edges feature. I am waiting here too.

curiouscat2018 avatar Mar 02 '15 04:03 curiouscat2018

@iAviatorJose I'm a little confused, didn't you test my repo out and say it was working for you? My code is merged with the master branch and they are exactly the same. If it's not working, it probably means your code hasn't been updated or something hasn't been built correctly. You said you'd tried android studio's "rebuild" option, right? Please confirm that your code is up to date, because it's working perfectly for me.

If it's still not working, I'm not sure what to do other than debugging this individually.

HarshEvilGeek avatar Mar 02 '15 05:03 HarshEvilGeek

@tianchi-seattle this feature has already been tested and added. Please see the sample code for details on how to incorporate bi directional swipe.

HarshEvilGeek avatar Mar 02 '15 05:03 HarshEvilGeek

@iAviatorJose @HarshEvilGeek Ahh I figured it out. We need to use library:1.1.9@aar instead of 1.1.8 at gradle build file. Please update it on the wiki page! Thanks.

curiouscat2018 avatar Mar 02 '15 05:03 curiouscat2018

Oh, didn't realize you were using the jar. Yup, 1.1.9. @daimajia , if everything is tested, can we change the wiki page?

HarshEvilGeek avatar Mar 02 '15 06:03 HarshEvilGeek

I'm using .jar file, and i downloaded the one in the wiki: AndroidSwipeLayout-1.1.8.jar. Could you update it?

Tanks

Studentessa avatar Mar 02 '15 08:03 Studentessa

@HarshEvilGeek @daimajia I did test your repo and it did work for me. But when i referred the documentation i saw the version as 1.1.8 and i assumed that to be as the new updated version of the repo.

Ok Guys the new the new Version 1.1.9

use the following compile statement for Android Studio.

compile "com.daimajia.swipelayout:library:1.1.9@aar"

We close these issue officially.

Thank you everyone.

iAviatorJose avatar Mar 02 '15 13:03 iAviatorJose