首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误与本地文字-地理定位插件

错误与本地文字-地理定位插件
EN

Stack Overflow用户
提问于 2019-11-17 14:56:02
回答 1查看 1.3K关注 0票数 0

当我试图启用位置时,谷歌地图出现了错误。

iv'e安装了google,并在项目bot中配置了它,有些地方出错了。

有什么问题吗?这是我第一次看到这个错误。

  • 这是错误

代码语言:javascript
复制
ERROR Error: JNI Exception occurred (SIGABRT).
JS: =======
JS: Check the 'adb logcat' for additional information about the error.
JS: =======
JS: ERROR Error: JNI Exception occurred (SIGABRT).
JS: =======
JS: Check the 'adb logcat' for additional information about the error.
JS: =======
JS: ERROR Error: Uncaught (in promise): Error: Cannot enable the location service. Error: JNI Exception occurred (SIGABRT).
JS: =======
JS: Check the 'adb logcat' for additional information about the error.
JS: =======

  • package.json

代码语言:javascript
复制
{
  "nativescript": {
    "id": "org.nativescript.DoHere",
    "tns-ios": {
      "version": "6.1.0"
    },
    "tns-android": {
      "version": "6.2.0"
    }
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "@angular/animations": "^8.2.14",
    "@angular/common": "^8.2.14",
    "@angular/compiler": "^8.2.14",
    "@angular/core": "^8.2.14",
    "@angular/forms": "^8.2.14",
    "@angular/platform-browser": "^8.2.14",
    "@angular/platform-browser-dynamic": "^8.2.14",
    "@angular/router": "^8.2.14",
    "nativescript-angular": "^8.2.2",
    "nativescript-geolocation": "^5.1.0",
    "nativescript-google-maps-sdk": "^2.8.1",
    "nativescript-theme-core": "~1.0.6",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.4.0",
    "tns-core-modules": "^6.2.1",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^8.2.14",
    "@ngtools/webpack": "~8.2.0",
    "nativescript-dev-webpack": "^1.3.0",
    "typescript": "~3.5.3"
  }
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-11-20 13:13:09

问题出在配置上。我在-plugins.gradle之前添加了一个文件

  • before-plugins.gradle

代码语言:javascript
复制
android {
  project.ext {
    googlePlayServicesVersion = "15.0.0"
  }
}

现在起作用了。谢谢你@Manoj

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58901746

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档