twoway-view icon indicating copy to clipboard operation
twoway-view copied to clipboard

Trouble importing into Android Studio

Open zepto88 opened this issue 10 years ago • 8 comments

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 ?

zepto88 avatar Feb 06 '15 12:02 zepto88

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

DarioAhdoot avatar Feb 06 '15 23:02 DarioAhdoot

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'
}

sweggersen avatar Feb 09 '15 22:02 sweggersen

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

DarioAhdoot avatar Feb 09 '15 22:02 DarioAhdoot

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

zepto88 avatar Feb 09 '15 23:02 zepto88

I am on OSX Yosemite.

DarioAhdoot avatar Feb 09 '15 23:02 DarioAhdoot

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:

DarioAhdoot avatar Feb 11 '15 23:02 DarioAhdoot

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'
}

jodaka avatar Feb 17 '15 20:02 jodaka

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

nikhilpanju avatar Sep 27 '16 13:09 nikhilpanju