Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app crash on LocationService .getMyLocation() #2918

Open
2 of 5 tasks
molinet88 opened this issue Nov 24, 2022 · 0 comments
Open
2 of 5 tasks

Android app crash on LocationService .getMyLocation() #2918

molinet88 opened this issue Nov 24, 2022 · 0 comments

Comments

@molinet88
Copy link

molinet88 commented Nov 24, 2022

I'm submitting a ...

  • question
  • any problem or bug report
  • feature request

If you choose 'problem or bug report', please select OS:

  • Android
  • iOS

cordova information:

cordova-custom-config 5.1.0 "cordova-custom-config"
cordova-open-native-settings 1.5.5 "Native settings"
cordova-plugin-advanced-http 3.2.0 "Advanced HTTP plugin"
cordova-plugin-android-notch 1.0.0 "AndroidNotch"
cordova-plugin-android-permissions 1.1.2 "Permissions"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-androidx 3.0.0 "cordova-plugin-androidx"
cordova-plugin-app-version 0.1.12 "AppVersion"
cordova-plugin-camera-preview 0.12.3 "cordova-plugin-camera-preview"
cordova-plugin-camera 5.0.3 "Camera"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-email-composer 0.9.2 "EmailComposer"
cordova-plugin-file-opener2 3.0.5 "File Opener2"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-firebasex 13.0.0-cli "Google Firebase Plugin"
cordova-plugin-geolocation 4.1.0 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 5.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-localization-strings 3.2.1 "Localization"
cordova-plugin-market 1.2.0 "Market"
cordova-plugin-network-information 3.0.0 "Network Information"
cordova-plugin-sms-retriever-manager 1.0.2 "Device"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.5 "Whitelist"
cordova.plugins.diagnostic 6.0.3 "Diagnostic"
mx.ferreyra.callnumber 0.0.2 "Cordova Call Number Plugin"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

ionic-native/core 5.35.0
ionic-native/google-maps 5.5.0

Current behavior:
App crashes on LocationService.getMyLocation().

Expected behavior:
Get current position instead of crashing.

Related code, data or error log (please format your code or data):
Code to reproduce it:

plugin.google.maps.LocationService.getMyLocation({ enableHighAccuracy: false }, () => {
     // app crashes before resolving
});

Crash log:

Fatal Exception: java.lang.NoClassDefFoundError
Failed resolution of: Landroidx/activity/ComponentActivity;
com.google.android.gms.common.GoogleApiAvailability.getInstance (com.google.android.gms:play-services-base@@17.1.0:1)
com.google.android.gms.internal.firebase-auth-api.zztj.call (com.google.firebase:firebase-auth@@21.0.1:1)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
java.lang.Thread.run (Thread.java:764)

Caused by java.lang.ClassNotFoundException
androidx.activity.ComponentActivity
java.lang.VMClassLoader.findLoadedClass (VMClassLoader.java)
java.lang.ClassLoader.findLoadedClass (ClassLoader.java:738)
java.lang.ClassLoader.loadClass (ClassLoader.java:363)
java.lang.ClassLoader.loadClass (ClassLoader.java:312)
com.google.android.gms.common.GoogleApiAvailability.getInstance (com.google.android.gms:play-services-base@@17.1.0:1)
com.google.android.gms.internal.firebase-auth-api.zztj.call (com.google.firebase:firebase-auth@@21.0.1:1)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
java.lang.Thread.run (Thread.java:764)

Caused by java.lang.NoClassDefFoundError
Failed resolution of: Landroidx/core/content/OnConfigurationChangedProvider;
com.google.android.gms.common.GoogleApiAvailability.getInstance (com.google.android.gms:play-services-base@@17.1.0:1)
com.google.android.gms.internal.firebase-auth-api.zztj.call (com.google.firebase:firebase-auth@@21.0.1:1)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
java.lang.Thread.run (Thread.java:764)

Caused by java.lang.ClassNotFoundException
Didn't find class "androidx.core.content.OnConfigurationChangedProvider" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.mautomocion.taxiecologic.develop-0DG-1LgwBESWeLZDoJor_Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.mautomocion.taxiecologic.develop-0DG-1LgwBESWeLZDoJor_Q==/lib/arm64, /data/app/com.mautomocion.taxiecologic.develop-0DG-1LgwBESWeLZDoJor_Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)
java.lang.ClassLoader.loadClass (ClassLoader.java:379)
java.lang.ClassLoader.loadClass (ClassLoader.java:312)
com.google.android.gms.common.GoogleApiAvailability.getInstance (com.google.android.gms:play-services-base@@17.1.0:1)
com.google.android.gms.internal.firebase-auth-api.zztj.call (com.google.firebase:firebase-auth@@21.0.1:1)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
java.lang.Thread.run (Thread.java:764)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant