Snapshot gradle configuration not working as documented
The SNAPSHOT pull of the new version is not working as documented in the README. Android Studio is unable to pull, even with the repo and compile directives as stated.
Same here. AS 0.9.0
Same.
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find twoway-view:core:unspecified. Searched in the following locations: https://jcenter.bintray.com/twoway-view/core/unspecified/core-unspecified.pom https://jcenter.bintray.com/twoway-view/core/unspecified/core-unspecified.jar https://repo1.maven.org/maven2/twoway-view/core/unspecified/core-unspecified.pom https://repo1.maven.org/maven2/twoway-view/core/unspecified/core-unspecified.jar file:/Users/npike/.m2/repository/twoway-view/core/unspecified/core-unspecified.pom file:/Users/npike/.m2/repository/twoway-view/core/unspecified/core-unspecified.jar https://oss.sonatype.org/content/repositories/snapshots/twoway-view/core/unspecified/core-unspecified.pom https://oss.sonatype.org/content/repositories/snapshots/twoway-view/core/unspecified/core-unspecified.jar file:/Users/npike/android/extras/android/m2repository/twoway-view/core/unspecified/core-unspecified.pom file:/Users/npike/android/extras/android/m2repository/twoway-view/core/unspecified/core-unspecified.jar file:/Users/npike/android/extras/google/m2repository/twoway-view/core/unspecified/core-unspecified.pom file:/Users/npike/android/extras/google/m2repository/twoway-view/core/unspecified/core-unspecified.jar Required by: Basic:app:unspecified > com.myapp:mylibrary-core:4.0 > org.lucasr.twowayview:layouts:1.0.0-SNAPSHOT
I was able to FINALLY get it to work in as far as downloading the libraries with this in my build:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId "dreamsocket.com.horizontallistview"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
minifyEnabled false
android.enforceUniquePackageName=false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:+'
compile 'org.lucasr.twowayview:core:1.0.0-SNAPSHOT@aar'
compile 'org.lucasr.twowayview:layouts:1.0.0-SNAPSHOT@aar'
compile 'org.lucasr.twowayview:twowayview:0.1.4'
}
I had the same issue. Solved it by putting the maven url in repositories{ //maven{...}} instead of buildscript{ repositores{ //maven{...} } }