Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Android FC with latest version 1.7.1 #1006

Closed
eduboxgithub opened this issue Jun 20, 2016 · 11 comments
Closed

Android FC with latest version 1.7.1 #1006

eduboxgithub opened this issue Jun 20, 2016 · 11 comments

Comments

@eduboxgithub
Copy link

Actual Behaviour

The app force close on android when the plugin is used.

Reproduce Scenario (including but not limited to)

Update to latest version 1.7.1.

Steps to Reproduce

Add version 1.7.0 - app not fc when the plugin is used
Remove version 1.7.1
Add version 1.7.1 - app fc when the plugin is used

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 4.4.2

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Wiko Rainbow

Cordova CLI version and cordova platform version

Cordova 6.1.1
Android 5.1.1

Plugin version

1.7.1

@macdonst
Copy link
Member

@eduboxgithub please reproduce the problem running adb logcat so I can see the force close error.

@meticoeus
Copy link

Same problem. Not getting any logcat output from crash.

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 5.0.1

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Samsung

Cordova CLI version and cordova platform version

Cordova 5.2.0
Android 4.1.1

Plugin version

1.7.2

@macdonst
Copy link
Member

@meticoeus that's impossible. If the app crashes there will be a stack trace. Also, you are not giving me a reproduction scenario here so it's really hard to debug your problem.

@meticoeus
Copy link

meticoeus commented Jun 27, 2016

Same reproduction scenario as the original post. Update from 1.7.0 to 1.7.1 or 1.7.2.

When running adb logcat at the time that the app crashes, no crash information appears to added to the log. I am connecting the device to usb and running adb logcat > logfile.txt before opening the app.

@macdonst
Copy link
Member

@meticoeus if the Android crash dialog pops up then once you click OK there will be a stack trace generated. Also, I'm not sure what you are doing to reproduce the issue. Is you code calling init or hasPermisson? Give me something to go on here.

@eduboxgithub
Copy link
Author

Hello,

Sorry for the delay. I was trying to get the logcat error crash as requested, when I noticed I had some Android SDK updates pending. The SDK versions installed on my machine are:

Android SDK Tools: 25.1.7
Android SDK Platform-tools 24

API 22 SDK Platform 2

Android Support Repository 33
Android Support Library 23.2.1

After the update I changed the plugin version to 1.7.2 and the crash was gone.

Does this make sense?
Does the plugin have any specific dependencies with the updated sdks?

@meticoeus do you have any pending sdk updates?

@macdonst
Copy link
Member

macdonst commented Jul 1, 2016

@eduboxgithub Yes, this makes complete sense. I suspect this is the same root cause as #909 and it has been fixed with an update from Google.

@meticoeus
Copy link

I am using Phonegap Build service to perform builds so I wouldn't be surprised if that is the case.

@macdonst
Copy link
Member

macdonst commented Jul 1, 2016

@meticoeus as asked the build team to update the Android build boxes yesterday. Today is a national holiday in Canada so it may not happen immediately.

@meticoeus
Copy link

When they update I'll try to build again with 1.7.2 and see if that fixes it. If not, I'll look for the cause more aggressively.

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants