question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

:react-native-calendar-events:compileReleaseJavaWithJavac FAILED

See original GitHub issue

After 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
DMezhenskyicommented, Apr 27, 2020

I have the same issue with 0.62.2 and jetifier 😕

2reactions
wmcmahancommented, Jun 29, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found