vonovak / react-native-add-calendar-event

Create, view or edit events in react native using the standard iOS / Android dialogs
MIT License
344 stars 103 forks source link

Issue trying to run on Android #97

Closed FFFra closed 4 years ago

FFFra commented 4 years ago

Hello, everyone.

I'm having this issue trying to run on Android. Does anyone know how can I solve it?

Thank u in advance:

`Task :react-native-add-calendar-event:compileDebugJavaWithJavac FAILED warning: [options] source value 7 is obsolete and will be removed in a future release warning: [options] target value 7 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. /Users/fraschetti/Riseup/mobile/riseup-appli-calendar/app/node_modules/react-native-add-calendar-event/android/src/main/java/com/vonovak/Utils.java:8: error: cannot find symbol import androidx.annotation.Nullable; ^ symbol: class Nullable location: package androidx.annotation /Users/fraschetti/Riseup/mobile/riseup-appli-calendar/app/node_modules/react-native-add-calendar-event/android/src/main/java/com/vonovak/AddCalendarEventModule.java:15: error: cannot find symbol import androidx.annotation.Nullable; ^ symbol: class Nullable location: package androidx.annotation /Users/fraschetti/Riseup/mobile/riseup-appli-calendar/app/node_modules/react-native-add-calendar-event/android/src/main/java/com/vonovak/Utils.java:25: error: cannot find symbol @Nullable ^ symbol: class Nullable location: class Utils /Users/fraschetti/Riseup/mobile/riseup-appli-calendar/app/node_modules/react-native-add-calendar-event/android/src/main/java/com/vonovak/AddCalendarEventModule.java:212: error: cannot find symbol private void returnResultBackToJS(@Nullable Long eventPostId) { ^ symbol: class Nullable location: class AddCalendarEventModule Note: /Users/fraschetti/Riseup/mobile/riseup-appli-calendar/app/node_modules/react-native-add-calendar-event/android/src/main/java/com/vonovak/AddCalendarEventModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/fraschetti/Riseup/mobile/riseup-appli-calendar/app/node_modules/react-native-add-calendar-event/android/src/main/java/com/vonovak/AddCalendarEventModule.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors 3 warnings

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 15s 333 actionable tasks: 305 executed, 28 up-to-date error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.`

FFFra commented 4 years ago

Ok, I manage to fix. I just downgrade to version 2.3.1 and its working.

Thanks for this amazing package!