HMS-Core / hms-flutter-plugin

This repo contains all of Flutter HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
286 stars 147 forks source link

PlatformException(6003, 6003: , null, null) Error #176

Closed uugurbas closed 2 years ago

uugurbas commented 2 years ago

I have tried many things but couldn't find a solution for hours. Here are the settings for my app:

allprojects { repositories { google() mavenCentral() maven { url 'https://developer.huawei.com/repo/' } } }

android { compileSdkVersion 31

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = '1.8'
}

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId deleted on purpose
    minSdkVersion 23
    targetSdkVersion 31
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

signingConfigs {
    release {
        keyAlias keystoreProperties['keyAlias']
        keyPassword keystoreProperties['keyPassword']
        storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
        storePassword keystoreProperties['storePassword']
        v1SigningEnabled true
        v2SigningEnabled true
    }
}
buildTypes {
    release {
        shrinkResources true
        signingConfig signingConfigs.release
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

    }
    debug {
        signingConfig signingConfigs.release
        debuggable true
    }
}

}

flutter { source '../..' }

dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation platform('com.google.firebase:firebase-bom:28.4.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava' implementation 'androidx.multidex:multidex:2.0.1' implementation 'com.google.android.material:material:1.4.0' implementation 'com.google.android.gms:play-services-auth:20.0.1' implementation 'com.huawei.agconnect:agconnect-core:1.5.2.300' implementation 'com.huawei.hms:iap:6.3.0.300'

I think I am confused with the certificate keys on the app signing page. But I used either of them on the project settings page and downloaded and used agconnect.json file but it didn't work. gradlew signingReport command gives the same sha256 key as the "Upload certificate" on the app signing page.

I constantly getting the error: PlatformException(6003, 6003: , null, null) Where is the problem? Thanks

Joseph-Nathan commented 2 years ago

me too , {code: AccAuthService, message: 6003: , details: 6003} any solution !?

sinemsevilmis commented 2 years ago

Hi @uugurbas and @Joseph-Nathan, Description of 6003 error code : Certificate fingerprint error. You may have misconfigured the certificate when creating it.

Could you please recreate it by following the steps in the link below? https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#2

If the issue persist, please feel free to contact us. Thank you for your interest in our plugins.