如果 sdk mapquest 和 volley 崩溃
crash if sdk mapquest and volley
我使用带有简单地图和标记的 mapquest sdk
当我将 Volley 库添加到 gradle
时,应用程序崩溃了
9228-9228/com.example.aklox.aklox A/libc:
/usr/local/google/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type jni::PendingJavaException" failed
Fatal signal 6 (SIGABRT), code -6 in tid 9228 (ple.aklox.aklox)
graddle 如下:
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.mapquest:mapping-android-sdk:2.0.5' // for Mapping SDK MapView
在添加 volley 的实施线之前,它运行良好!
将以下内容插入项目的 build.gradle
文件中:
allprojects {
repositories {
// mq maven repo
maven { url 'http://artifactory.cloud.mapquest.com/artifactory/et-android-binaries' }
}
}
然后,将以下内容插入应用程序的 build.gradle
文件中:
implementation('com.mapquest:mapping-android-sdk:2.0.5') // for Mapping SDK MapView
我使用带有简单地图和标记的 mapquest sdk 当我将 Volley 库添加到 gradle
时,应用程序崩溃了9228-9228/com.example.aklox.aklox A/libc:
/usr/local/google/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type jni::PendingJavaException" failed
Fatal signal 6 (SIGABRT), code -6 in tid 9228 (ple.aklox.aklox)
graddle 如下:
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.mapquest:mapping-android-sdk:2.0.5' // for Mapping SDK MapView
在添加 volley 的实施线之前,它运行良好!
将以下内容插入项目的 build.gradle
文件中:
allprojects {
repositories {
// mq maven repo
maven { url 'http://artifactory.cloud.mapquest.com/artifactory/et-android-binaries' }
}
}
然后,将以下内容插入应用程序的 build.gradle
文件中:
implementation('com.mapquest:mapping-android-sdk:2.0.5') // for Mapping SDK MapView