twoway-view
twoway-view copied to clipboard
Trouble importing into Android Studio
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 ?
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
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'
}
Hi. I tried that as well, but without any success.
Does it matter running on Ubuntu or Win7? Ubuntu has version 1.1 of AS while Win7 is 1.0.1 i think
I am on OSX Yosemite.
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:
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'
}
I had the same issue. Solved it by putting the maven url in
repositories{ //maven{...}}
instead of
buildscript{ repositores{ //maven{...} } }