Error:Cause: peer not authenticated

1,766 views
Skip to first unread message

Sourabh kumar

unread,
Jul 21, 2016, 9:49:28 AM7/21/16
to Firebase Google Group
After modifying gradle's file as specified in firebase documentation  my build.gradle file look like

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories
{
        jcenter
()
   
}
    dependencies
{
        classpath
'com.android.tools.build:gradle:2.1.2'
        classpath 'com.google.gms:google-services:3.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects
{
    repositories
{
        jcenter
()
   
}
}

task clean
(type: Delete) {
   
delete rootProject.buildDir
}

and app/build.gradle file look like

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.example.android.safetyfirst"
minSdkVersion 10
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
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.4.0'
compile 'com.google.firebase:firebase-core:9.2.1'
compile 'com.google.firebase:firebase-database:9.2.1'

}
apply plugin: 'com.google.gms.google-services'

after all these modification during gradle sync. i get following error
"Error:Cause: peer not authenticated"
help me....

Doug Stevenson

unread,
Jul 22, 2016, 12:19:34 PM7/22/16
to Firebase Google Group
Sourabh,

If you do a search on that error message "Error:Cause: peer not authenticated", you'll see that it's a common problem that has to do with the way your build is not able to do proper HTTPS.  There are a lot of different things to try here:


Doug

Sourabh kumar

unread,
Oct 5, 2016, 11:56:05 AM10/5/16
to Firebase Google Group
Thanks Doug  I figured out that there is problem with my internet connection.
Reply all
Reply to author
Forward
0 new messages