lucasr / twoway-view

[DEPRECATED] RecyclerView made simple
5.23k stars 1.02k forks source link

Trouble importing into Android Studio #208

Open zepto88 opened 9 years ago

zepto88 commented 9 years ago

Hey, I'm fairly new to Android Studio and I'm having some trouble importing this project into mine. Do you have a guide or anything ?

DarioAhdoot commented 9 years ago

Same here. Followed instructions on Readme and added:

compile 'org.lucasr.twowayview:twowayview:0.1.4'

to my app module's build.gradle. Specifically, I am seeing that I can import org.lucasr.twowayview.TwoWayView, but am unable to import org.lucasr.twowayview.TwoWayLayoutManager and org.lucasr.twowayview.widget.ListLayoutManager

sweggersen commented 9 years ago

This goes into the projects build.gradle:

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}

This goes into the apps build.gradle:

dependencies {
    compile 'org.lucasr.twowayview:core:1.0.0-SNAPSHOT@aar'
    compile 'org.lucasr.twowayview:layouts:1.0.0-SNAPSHOT@aar'
}
DarioAhdoot commented 9 years ago

Hi. I tried that as well, but without any success.

zepto88 commented 9 years ago

Does it matter running on Ubuntu or Win7? Ubuntu has version 1.1 of AS while Win7 is 1.0.1 i think

DarioAhdoot commented 9 years ago

I am on OSX Yosemite.

DarioAhdoot commented 9 years ago

Any word on this? We're kinda stuck with this not working. Have tried both stable and snapshot versions. Each has it's own problems. Would prefer to use the stable version as snapshot still seems to be under heavy development:

jodaka commented 9 years ago

If you weren't able to import org.lucasr.twowayview.TwoWayLayoutManager that suggests that you either trying to use stable version (and it simply doesn't has that class), or you've made mistakes while trying to include snapshot version. Try putting all of those into app build.graddle

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
    compile 'org.lucasr.twowayview:core:1.0.0-SNAPSHOT@aar'
    compile 'org.lucasr.twowayview:layouts:1.0.0-SNAPSHOT@aar'
}
nikhilpanju commented 7 years ago

I had the same issue. Solved it by putting the maven url in repositories{ //maven{...}} instead of buildscript{ repositores{ //maven{...} } }