-
Notifications
You must be signed in to change notification settings - Fork 373
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
Unable to build in Android: unreported exception JSONException #1003
Comments
i confirm i receive the same error |
The same is happening to me |
Hi, folks! I've reverted react-native-onesignal to v 3.7.3 and it's working for me. If you agree with that, you can do the same, meanwhile OneSignal's devs answer us. |
Downgrading to v 3.7.3 didn't work to me. |
It Worked for me. |
Downgrading to
|
After downgrading, are you getting the same error? Did you delete node_modules folder and package-lock.json? |
I was stupidly including the react-native-onesignal version in the package.json file as |
downgrading to 3.7.3 worked for me |
I'm glad to hear it! I hope the downgrading doesn't affect the functionality |
Hi, Attention put the written version "3.7.3"" and not "3.7.3", it worked here |
The same is happening to me T.T |
Thank you for all of the information working on a fix for this now. Seems we reorganized some of our outcome event tracking and ended up moving the try-catch responsibility (for error logging) into a controller rather than the class itself now. Be on the look out for a new release |
Hey Downgrade to 3.7.3 dont work for me ? buildToolsVersion = "28.0.3" |
@mikechoch thanks for the fix!! |
Description:
Unable to build android app:
/Users/fabio/Documents/Progetti/iOS/country-italia-app/node_modules/react-native-onesignal/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java:489: error: unreported exception JSONException; must be caught or declared to be thrown
callback.invoke(RNUtils.jsonToWritableMap(outcomeEvent.toJSONObject()));
^
/Users/fabio/Documents/Progetti/iOS/country-italia-app/node_modules/react-native-onesignal/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java:502: error: unreported exception JSONException; must be caught or declared to be thrown
callback.invoke(RNUtils.jsonToWritableMap(outcomeEvent.toJSONObject()));
^
/Users/fabio/Documents/Progetti/iOS/country-italia-app/node_modules/react-native-onesignal/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java:515: error: unreported exception JSONException; must be caught or declared to be thrown
Environment
React Native: 0.62.2
buildToolsVersion = "28.0.3"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
react-native-onesignal: 3.8.0
Steps to Reproduce Issue:
Try to build
The text was updated successfully, but these errors were encountered: