:react-native-calendar-events:compileReleaseJavaWithJavac FAILED
See original GitHub issueAfter update to version 1.4.0 I got error when run cd android && ./gradlew assembleRelease
:react-native-calendar-events:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/opt/app/gift_demo/node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/CalendarEvents.java:29: error: cannot find symbol
import com.facebook.react.bridge.Dynamic;
^
symbol: class Dynamic
location: package com.facebook.react.bridge
/opt/app/gift_demo/node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/CalendarEvents.java:114: error: cannot find symbol
public WritableNativeArray findEvents(Dynamic startDate, Dynamic endDate, ReadableArray calendars) {
^
symbol: class Dynamic
location: class CalendarEvents
/opt/app/gift_demo/node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/CalendarEvents.java:114: error: cannot find symbol
public WritableNativeArray findEvents(Dynamic startDate, Dynamic endDate, ReadableArray calendars) {
^
symbol: class Dynamic
location: class CalendarEvents
/opt/app/gift_demo/node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/CalendarEvents.java:685: error: cannot find symbol
public void findAllEvents(final Dynamic startDate, final Dynamic endDate, final ReadableArray calendars, final Promise promise) {
^
symbol: class Dynamic
location: class CalendarEvents
/opt/app/gift_demo/node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/CalendarEvents.java:685: error: cannot find symbol
public void findAllEvents(final Dynamic startDate, final Dynamic endDate, final ReadableArray calendars, final Promise promise) {
^
symbol: class Dynamic
location: class CalendarEvents
5 errors
:react-native-calendar-events:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-calendar-events:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
My dependency
“react-native”: “0.41.2”, “react-native-calendar-events”: “1.4.0”
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:16 (3 by maintainers)
Top Results From Across the Web
not working with react native 0.69.4, Execution failed for task ...
Description update to react-native 0.69.4, got an error for react-native-screen error Failed to install the app.
Read more >React Native 0.64-65 with XCode 13 build error - Stack Overflow
Anyone else getting this since upgrading to XCode 13 Beta and macOS 12 Beta (Monterey)?. XCode 12.5 still builds successfully with RN 0.64.2...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issue with 0.62.2 and jetifier 😕
@vseprav @mariapotashnyk I think the class Dynamic was introduced in React Native’s 0.42.0 release. If possible, you can try updating your version of React Native to gain reference to the new class. I will also make a note in the readme.