尝试启用位置信息时,我在使用Google地图时出错。
iv'e安装了google-maps-sdk并在项目bot中对其进行了配置。
可能是什么问题?这是我第一次看到此错误。
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: =======
{
"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"
}
}
答案 0 :(得分:0)
问题出在配置上。 我添加了一个文件before-plugins.gradle
android {
project.ext {
googlePlayServicesVersion = "15.0.0"
}
}
现在正在工作。 谢谢@Manoj