【问题标题】:I am constantly getting SSL error in Here Maps我在 Here Maps 中不断收到 SSL 错误
【发布时间】:2020-02-10 19:05:12
【问题描述】:

使用 Android 8.0 和 9.0 - 我下载了 HERE Maps Android SDK 示例代码并想尝试逐向导航,但每一秒日志都会像 30 条这样的消息膨胀:

2019-02-11 10:42:44.917 24246-24370/com.example.heretest E/NetworkProtocol: NetworkProtocol::GetTask::run exception: javax.net.ssl.SSLProtocolException: Read error: ssl=0xcc3d02c8: Failure in SSL library, usually a protocol error
error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT (external/boringssl/src/crypto/fipsmodule/cipher/e_aes.c:1307 0xe5baba43:0x00000000)
error:1000008b:SSL routines:OPENSSL_internal:DECRYPTION_FAILED_OR_BAD_RECORD_MAC (external/boringssl/src/ssl/tls_record.cc:298 0xe5baba43:0x00000000)

模拟导航本身非常不稳定,经常什么也没有发生。

build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
    applicationId "com.example.heretest"
    minSdkVersion 17
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
        , 'proguard-rules.pro'
    }
}
}

repositories {
flatDir {
    dirs 'libs'
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation project(':HERE-sdk')
implementation 'com.google.code.gson:gson:2.8.5'
}

【问题讨论】:

  • 您是否在版本早于 5.0 的设备上运行您的应用程序?
  • 我使用的是 Android 8.0 和 Android 9.0
  • 你可以在这里发布你的 build.gradle 文件吗?
  • 添加,编辑
  • 您的 google play 服务依赖项在其中丢失。请添加实现 'com.google.android.gms:play-services-maps:12.0.1'

标签: android ssl here-api


【解决方案1】:

HERE 高级 SDK 在过去 12 个月中发生了变化,其中包含许多新功能和错误修复。请为您的用例使用最新的 SDK,因为该问题目前无法重现。

我们还为不同的用例提供了几个代码示例。

https://developer.here.com/documentation/android-premium/dev_guide/topics/routing.html

https://github.com/heremaps/here-android-sdk-examples

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-30
    • 1970-01-01
    相关资源
    最近更新 更多