当我试图启用位置时,谷歌地图出现了错误。
iv'e安装了google,并在项目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"
}
}发布于 2019-11-20 13:13:09
问题出在配置上。我在-plugins.gradle之前添加了一个文件
android {
project.ext {
googlePlayServicesVersion = "15.0.0"
}
}现在起作用了。谢谢你@Manoj
https://stackoverflow.com/questions/58901746
复制相似问题