Reputation: 105
i'm having a error with google maps when trying to enable location.
iv'e installed google-maps-sdk and configured it in the project bot something went wrong.
what can be the problem? it's the first time i see this error.
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"
}
}
Upvotes: 0
Views: 1493
Reputation: 105
the problem was at the configuration. i added a file before-plugins.gradle
android {
project.ext {
googlePlayServicesVersion = "15.0.0"
}
}
it's working now. thank you @Manoj
Upvotes: 2