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

app crashes #52

Open
ghost opened this issue Sep 13, 2014 · 13 comments
Open

app crashes #52

ghost opened this issue Sep 13, 2014 · 13 comments

Comments

@ghost
Copy link

ghost commented Sep 13, 2014

I get this when I try to showMap:

E/AndroidRuntime( 568): java.lang.NullPointerException: CameraUpdateFactory is not initialized

@lholmquist
Copy link
Collaborator

do you have any other plugins installed? mapkit shouldn't be using any Camera related stuff

@ghost
Copy link
Author

ghost commented Sep 14, 2014

I do have the cordova camera installed, but it works fine

Den 14. sep. 2014 kl. 02.53 skrev Lucas Holmquist [email protected]:

do you have any other plugins installed? mapkit shouldn't be using any Camera related stuff


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Sep 14, 2014

CameraUpdateFactory IS a google maps v2 feature to set zoom and according stackoverflow

@ghost
Copy link
Author

ghost commented Sep 14, 2014

wtf, MapsInitializer.initialize(cordova.getActivity()); was commented in MapKit.java

@lholmquist
Copy link
Collaborator

@fidoboy
Copy link

fidoboy commented Nov 26, 2014

is this issue solved? app is crashing for me with android... not sure if it's related (works fine on iOS)

@ghost
Copy link
Author

ghost commented Nov 26, 2014

I solved it. Let me Get Back to you later when I'm on a computer

Sendt fra min iPhone

Den 26. nov. 2014 kl. 03.50 skrev fidoboy [email protected]:

is this issue solved? app is crashing for me with android... not sure if it's related


Reply to this email directly or view it on GitHub.

@fidoboy
Copy link

fidoboy commented Nov 26, 2014

cool! 👍

@jpmetcalf
Copy link

*Problem Solved See Below

I am also getting an app crash in android. I'm not getting a specific error message just a message "Unfortunately, TestApp has stopped".

iPhone functions fine.

Any ideas?

Solution was to switch to the "Google API's" system image. I was using the wrong Android emulation settings. I needed to install and use the "Google API's" system image from the Android SDK and switch to it.

All is working now.

@fidoboy
Copy link

fidoboy commented Dec 8, 2014

Hey jpmetcalf can you explain a bit more in detail? Where did you changed the Google APIs? What version?

@jpmetcalf
Copy link

I am currently using Android 4.4.2 (API 19).

The solution for me was to launch the "SDK Manager.exe" from my android-sdk install and then add the "Google APIs (x86 System Image)".

Then I reconfigured my Android virtual image via the "AVD Manager.exe" from my android-sdk install.

I am currently using the following settings in my Virtual Device:
avd

@fidoboy
Copy link

fidoboy commented Dec 10, 2014

Thanks for the info @jpmetcalf! I'm also using API 19, with newer versions the plugin fails to compile. But i'm testing on real device (not simulator) and even with v19 it crashes... :(

@fidoboy
Copy link

fidoboy commented Dec 16, 2014

Finally i managed to solve this using the right Android API KEY :) 👊

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

3 participants