android - 在 onEngineInitializationCompleted 下给出 MISSING_LIBRARIES 的地图初始化(错误错误)
问题描述
这是here-map初始化的代码。
if (m_mapFragment != null) {
/* Initialize the SupportMapFragment, results will be given via the called back. */
m_mapFragment.init(new OnEngineInitListener() {
@Override
public void onEngineInitializationCompleted(Error error) {
if (error == Error.NONE) {
m_map = m_mapFragment.getMap();
isMapReady = true;
posManager = PositioningManager.getInstance();
// Register positioning listener
posManager.addListener(
new WeakReference<PositioningManager.OnPositionChangedListener>(positionListener));
if (posManager != null) {
posManager.start(
PositioningManager.LocationMethod.GPS_NETWORK);
}
/*
* Get the NavigationManager instance.It is responsible for providing voice
* and visual instructions while driving and walking
*/
m_navigationManager = NavigationManager.getInstance();
final VoiceCatalog voiceCatalog = VoiceCatalog.getInstance();
voiceCatalog.downloadCatalog(new VoiceCatalog.OnDownloadDoneListener() {
@Override
public void onDownloadDone(VoiceCatalog.Error error) {
if (error == VoiceCatalog.Error.NONE) {
// Get the list of voice packages from the voice catalog list
List<VoicePackage> voicePackages = voiceCatalog.getCatalogList();
// select
for (VoicePackage vPackage : voicePackages) {
if (vPackage.getMarcCode().compareToIgnoreCase("eng") == 0) {
if (vPackage.isTts()) {
vid = vPackage.getId();
voiceCatalog.downloadVoice(vid, new VoiceCatalog.OnDownloadDoneListener() {
@Override
public void onDownloadDone(VoiceCatalog.Error error) {
if (error == VoiceCatalog.Error.NONE) {
// set the voice skin for use by navigation manager
VoiceGuidanceOptions voiceGuidanceOptions =
m_navigationManager.getVoiceGuidanceOptions();
voiceGuidanceOptions.setVoiceSkin(voiceCatalog.getLocalVoiceSkin(vid));
}
}
});
break;
}
}
}
}
}
});
} else {
Toast.makeText(SpeedMediatorActivity.this,
"ERROR: Cannot initialize Map with error " + error,
Toast.LENGTH_LONG).show();
}
}
});
}
我正在进入错误对象->>
缺少原生库:gnustl_shared、gnustl_shared、gnustl_shared。有关正确项目设置的详细信息,请参阅用户指南。有人可以帮我吗。
解决方案
您是否按照此处地图引擎的教程进行操作?就像您正确导入库一样吗?我认为问题在于库的导入
- 你在清单中添加了吗
- 您是否将内容提取然后解压缩到 android 应用程序库中?
- 你错过了任何步骤吗?
推荐阅读
- php - Excel::download() 即使在返回后也返回一个空/空白页面
- javascript - WebView 出现问题,卡在加载中
- r - 选择 gnls 模型的标准
- angular - 如何以角度重试 api 调用 3 次,直到获取数据(只有 1 个 API,不适用于 http 拦截器)
- python - 在循环中将工作表从一个工作簿移动到另一个工作簿
- r - 如何按ggplot中的单列对R数据框进行排序
- windows - 输入的 MAC 损坏。ssh_dispatch_run_fatal:消息验证码不正确无法在远程服务器上 ssh jupyter notebook
- devise - 在水豚进行测试之前登录
- python - 如何在 coremltools 中指定缺少的功能
- javascript - 无法添加下拉菜单以在选择时向下推送内容 - DJANGO