使用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'
}
答案 0 :(得分:0)
HERE高级SDK在过去12个月中发生了变化,其中包含许多新功能和错误修复。请使用最新的SDK作为您的用例,因为该问题目前无法重现。
我们还提供了一些针对不同用例的代码示例。
https://developer.here.com/documentation/android-premium/dev_guide/topics/routing.html