bthurlow / nativescript-imagecropper

A nativescript image cropping plugin.
Other
49 stars 35 forks source link

Not working on Android API 29 With Nativescript 6.1.1 #60

Open jitendraashutec opened 4 years ago

jitendraashutec commented 4 years ago

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

I have upgraded nativescript 6.1.2. After that it is not working in Android API 28 and 29.

shiv19 commented 4 years ago

I'm using this cropper on devices running API 28 with no issues, haven't tried it on 29

jitendraashutec commented 4 years ago

@shiv19 I have checked in API 28 and it is working. but in API 29 I am getting error:

Error: Cannot convert object to Ljava/lang/Throwable; at index 0 JS: Error: Cannot convert object to Ljava/lang/Throwable; at index 0

I think API 29 uses Android X and to support I think you should update https://github.com/Yalantis/uCrop dependancy.

shiv19 commented 4 years ago

The version of this plugin at npm.proplugins.org already uses the updated Android X lib. But for this public version, I welcome any incoming PRs (after I reveiw it)

jitendraashutec commented 4 years ago

please review the Pull Request, I have fixed Android X crashing issue. https://github.com/bthurlow/nativescript-imagecropper/pull/61