android - Could not resolve com.commonsware.cwac:camera:0.6.+ -


i have added tedpicker in applications https://github.com/parksanggwon/tedpicker

but weeks when try sync gradle internet error shows up

error:a problem occurred configuring project ':app'. > not resolve dependencies configuration ':app:_debugapkcopy'. > not resolve com.commonsware.cwac:camera:0.6.+. required by: yourapp:app:unspecified > com.github.parksanggwon:tedpicker:v1.0.10 > not resolve com.commonsware.cwac:camera:0.6.+. > failed list versions com.commonsware.cwac:camera. > unable load maven meta-data https://repo.commonsware.com.s3.amazonaws.com/com/commonsware/cwac/camera/maven-metadata.xml. > not https://repo.commonsware.com.s3.amazonaws.com/com/commonsware/cwac/camera/maven-metadata.xml'. > host name 'repo.commonsware.com.s3.amazonaws.com' not match certificate subject provided peer (cn=*.s3.amazonaws.com, o=amazon.com inc., l=seattle, st=washington, c=us) 

but works fine if switch offline mode in gradle

also app's buid.gradle

buildscript { repositories {     mavencentral() }  dependencies {     classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1' } } apply plugin: 'com.android.application' apply plugin: 'com.jakewharton.hugo'  android { compilesdkversion 24 buildtoolsversion "24.0.2"  defaultconfig {     applicationid "org.urapp.urapp"     minsdkversion 19     targetsdkversion 22     versioncode 2     multidexenabled true     versionname "1.1" } packagingoptions {     exclude 'meta-inf/dependencies'     exclude 'meta-inf/notice'     exclude 'meta-inf/license'     exclude 'meta-inf/license.txt'     exclude 'meta-inf/notice.txt'     exclude 'meta-inf/asl2.0'} buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } dexoptions {     maxprocesscount 4     javamaxheapsize "4g" } }  repositories { mavencentral() jcenter() maven {     url "https://repo.commonsware.com.s3.amazonaws.com" } maven { url "https://jitpack.io" } }  android { uselibrary 'org.apache.http.legacy' }  dependencies { compile filetree(include: ['*.jar'], dir: 'libs') testcompile 'junit:junit:4.12' compile project(':flexjson-2.1') compile('org.apache.httpcomponents:httpmime:4.2.6') {     exclude module: 'httpclient' } compile project(':android-advancedwebview') compile project(':flexjson-2.1') compile 'com.google.firebase:firebase-messaging:9.4.0' compile 'com.google.firebase:firebase-core:9.4.0' compile 'com.google.android.gms:play-services-auth:9.6.0' compile 'com.google.android.gms:play-services-identity:9.6.0' compile 'com.android.support:appcompat-v7:24.2.1' compile 'org.apache.httpcomponents:httpclient:4.3.5' compile 'com.android.support:design:24.2.1' compile 'net.opacapp:multiline-collapsingtoolbar:1.2.2' compile 'com.android.support:palette-v7:24.2.1' compile 'com.github.parksanggwon:tedpicker:v1.0.10' compile 'com.theartofdev.edmodo:android-image-cropper:2.3.+' compile 'com.android.support:cardview-v7:24.2.1' compile 'com.android.support:recyclerview-v7:24.2.1' compile 'com.google.guava:guava:18.0' compile 'com.github.oliveiradev:image-zoom:0.3.0' compile 'com.android.support:percent:24.2.1' compile 'com.android.support:multidex:1.0.1' compile 'com.android.volley:volley:1.0.0' compile 'de.hdodenhof:circleimageview:2.1.0' compile 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1' compile 'com.google.firebase:firebase-crash:9.4.0' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.squareup.picasso:picasso:2.5.2' }  afterevaluate { tasks.matching {     it.name.startswith('dex') }.each { dx ->     if (dx.additionalparameters == null) {         dx.additionalparameters = ['--multi-dex']     } else {         dx.additionalparameters += '--multi-dex'     } } } subprojects { project.plugins.whenpluginadded { plugin ->     if ("com.android.build.gradle.appplugin".equals(plugin.class.name)) {         project.android.dexoptions.predexlibraries = false     } else if ("com.android.build.gradle.libraryplugin".equals(plugin.class.name)) {         project.android.dexoptions.predexlibraries = false     } } } apply plugin: 'com.google.gms.google-services'  

i have added tedpicker in applications

i not recommend using library, since has dependency on discontinued library (namely, cwac-camera library).

but weeks when try sync gradle internet error shows up

change url "https://repo.commonsware.com.s3.amazonaws.com" url "https://s3.amazonaws.com/repo.commonsware.com".


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -