i trying implement gradle:
compile 'com.edmodo:cropper:1.0.2'
..in project , keep getting error when gradle building. error is:
error:(36, 13) failed resolve: com.edmodo:cropper:1.0.2
that's displays , doesn't display reason. referred this answer well, error persists. why error occur?
edit:
my build.gradle:
buildscript { repositories { jcenter() } 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() } } task clean(type: delete) { delete rootproject.builddir }
edit:
app module
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.2" uselibrary 'org.apache.http.legacy' defaultconfig { applicationid "com.myapp.testapp" minsdkversion 15 targetsdkversion 23 versioncode 1 versionname "1.0" multidexenabled true } dexoptions { javamaxheapsize "4g" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.google.code.gson:gson:2.3' compile 'com.google.guava:guava:18.0' compile 'com.googlecode.android-query:android-query:0.25.9' compile 'com.google.android.gms:play-services:8.3.0' compile 'com.google.android.gms:play-services-gcm:8.3.0' compile 'com.edmodo:cropper:1.0.2' }
you can use compile 'com.edmodo:cropper:1.0.1'
build.gradle
repositories { mavencentral() } dependencies { compile 'com.edmodo:cropper:1.0.1' }
then clean-rebuild-restart-sync
project .
Comments
Post a Comment