daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.0.1.
  2.  
  3. Could not resolve com.android.support.constraint:constraint-layout:1.0.1.
  4. Required by:
  5.     project :app
  6.  > Could not resolve com.android.support.constraint:constraint-layout:1.0.1.
  7.     > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/constraint/constraint-layout/1.0.1/constraint-layout-1.0.1.pom'.
  8.           > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/support/constraint/constraint-layout/1.0.1/constraint-layout-1.0.1.pom'.
  9.                    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  10.                                > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  11.                                               > unable to find valid certification path to requested target
  12.    
  13. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  14.  
  15. buildscript {
  16.     repositories {
  17.         jcenter() {
  18.             url "http://jcenter.bintray.com/"
  19.         }
  20.         google()
  21. //        mavenCentral()
  22. //        maven()
  23. //                {
  24. //                    url "http://maven.google.com"
  25. //                }
  26.     }
  27.     dependencies {
  28.         classpath 'com.android.tools.build:gradle:3.0.0'
  29.  
  30.         // NOTE: Do not place your application dependencies here; they belong
  31.         // in the individual module build.gradle files
  32.     }
  33. }
  34.  
  35. allprojects {
  36.     repositories {
  37.         jcenter() {
  38.             url "http://jcenter.bintray.com/"
  39.         }
  40.         google()
  41. //        mavenCentral()
  42. //        maven()
  43. //                {
  44. //                    url "http://maven.google.com"
  45. //                }
  46.     }
  47. }
  48.  
  49. task clean(type: Delete) {
  50.     delete rootProject.buildDir
  51. }
  52.  
  53.  
  54.  
  55. Here is my Build.gradle file(app) :
  56.  
  57. apply plugin: 'com.android.application'
  58.  
  59. android {
  60.     compileSdkVersion 25
  61.     defaultConfig {
  62.         applicationId 'com.example.hellojnicallback'
  63.         minSdkVersion 21
  64.         targetSdkVersion 25
  65.         versionCode 1
  66.         versionName "1.0"
  67.     }
  68.     buildTypes {
  69.         release {
  70.             minifyEnabled false
  71.             proguardFiles getDefaultProguardFile('proguard-android.txt'),
  72.                           'proguard-rules.pro'
  73.         }
  74.     }
  75.     externalNativeBuild {
  76.         cmake {
  77.             path "src/main/cpp/CMakeLists.txt"
  78.         }
  79.     }
  80. }
  81.  
  82. dependencies {
  83.     implementation fileTree(dir: 'libs', include: ['*.jar'])
  84.     implementation 'com.android.support:appcompat-v7:25.4.0'
  85.     implementation 'com.android.support.constraint:constraint-layout:1.0.1'
  86. }
  87.    
  88. buildscript {
  89.     repositories {
  90.         jcenter() {
  91.             url "https://jcenter.bintray.com/"
  92.         }
  93.         mavenCentral()
  94.         maven { url 'http://maven.fabric.io/public' }
  95.     }
  96.     dependencies {
  97.         classpath 'com.android.tools.build:gradle:2.2.2'
  98.         classpath 'io.fabric.tools:gradle:1.+'
  99.     }
  100. }
  101.  
  102. apply plugin: 'com.android.application'
  103. apply plugin: 'io.fabric'
  104.  
  105.  
  106. repositories {
  107.     jcenter() {
  108.         url "https://jcenter.bintray.com/"
  109.     }
  110.     mavenCentral()
  111.     maven { url 'http://maven.fabric.io/public' }
  112. }
  113.  
  114. android {
  115.     compileSdkVersion 23
  116.     buildToolsVersion "23.0.2"
  117.  
  118.     defaultConfig {
  119.         applicationId "com.javacodegeeks.androidcrashlyticsexample"
  120.         minSdkVersion 14
  121.         targetSdkVersion 23
  122.         versionCode 1
  123.         versionName "1.0"
  124.     }
  125.     buildTypes {
  126.         release {
  127.             minifyEnabled false
  128.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  129.         }
  130.     }
  131. }
  132.  
  133. dependencies {
  134.     compile fileTree(dir: 'libs', include: ['*.jar'])
  135.     testCompile 'junit:junit:4.12'
  136.     compile 'com.android.support:appcompat-v7:23.2.1'
  137.     **compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {**
  138.         transitive = true;
  139.     }
  140. }
  141.  
  142.  
  143. So I think the issue is in the URL , and this particular URL - from the maven where the AS 3.0 is trying to fetch is being blocked by my corporate firewall.Is it so?
RAW Paste Data
Top