android - Gradle - Failed to resolve -


i know there multiple threads on not single fix worked figured must have unique issue or making stupid error smart can point out.

i trying use realm recyclerview (found here : https://github.com/thorbenprimke/realm-recyclerview)

however cannot gradle sync go beyond error 29,13 failed resolve com.github.thorbenprimke:realmr-ecyclerview:0.9.12

my app build.gradle file looks :

apply plugin: 'com.android.application'  android {     compilesdkversion 23     buildtoolsversion "23.0.1"      defaultconfig {         applicationid "com.example.harris.school"         minsdkversion 18         targetsdkversion 23         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     testcompile 'junit:junit:4.12'     compile 'com.android.support:appcompat-v7:23.1.1'     compile 'com.android.support:design:23.1.1'     compile files('libs/joda-time-2.9.jar')     compile 'com.android.support:cardview-v7:23.1.1'     compile 'io.realm:realm-android:0.84.1'     compile 'com.github.thorbenprimke:realm-recyclerview:0.9.12' } 

and other 1 looks this:

buildscript {     repositories {         jcenter()         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.5.0'          // note: not place application dependencies here; belong         // in individual module build.gradle files     } }  allprojects {     repositories {         jcenter()         mavencentral()         maven { url "https://jitpack.io" }      } }  task clean(type: delete) {     delete rootproject.builddir } 

thanks!

in build.gradle file inside android {}, add line

dexoptions {     javamaxheapsize "4g" } 

like

android {     dexoptions {         javamaxheapsize "4g"     } } 

if still not building, might have enable multidex

look @ stack overflow post how enable multidex

gradle - android studio build slow multidex application


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -