Skip to content
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

Missing support for React Native 0.74.2 #438

Closed
abdulmateentechbits opened this issue Jul 20, 2024 · 2 comments
Closed

Missing support for React Native 0.74.2 #438

abdulmateentechbits opened this issue Jul 20, 2024 · 2 comments

Comments

@abdulmateentechbits
Copy link

abdulmateentechbits commented Jul 20, 2024

With Fresh React native expo project facing this issue ( i am using prebuild as per react-native-live-markdown documentation)

"react-native": "0.74.2"
 "@expensify/react-native-live-markdown": "^0.1.108"
"expo": "~51.0.8"

Error

> Task :expensify_react-native-live-markdown:compileDebugJavaWithJavac FAILED
/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expensify/react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/CustomMountingManager.java:24: error: cannot find symbol
import com.facebook.react.views.text.TextInlineViewPlaceholderSpan;
                                    ^
  symbol:   class TextInlineViewPlaceholderSpan
  location: package com.facebook.react.views.text
/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expensify/react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/CustomMountingManager.java:163: error: cannot find symbol
          text.nextSpanTransition(i, text.length(), TextInlineViewPlaceholderSpan.class);
                                                    ^
  symbol:   class TextInlineViewPlaceholderSpan
  location: class CustomMountingManager
/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expensify/react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/CustomMountingManager.java:164: error: cannot find symbol
        TextInlineViewPlaceholderSpan[] placeholders =
        ^
  symbol:   class TextInlineViewPlaceholderSpan
  location: class CustomMountingManager
/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expensify/react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/CustomMountingManager.java:165: error: cannot find symbol
          text.getSpans(i, lastAttachmentFoundInSpan, TextInlineViewPlaceholderSpan.class);
                                                      ^
  symbol:   class TextInlineViewPlaceholderSpan
  location: class CustomMountingManager
/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expensify/react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/CustomMountingManager.java:166: error: cannot find symbol
        for (TextInlineViewPlaceholderSpan placeholder : placeholders) {
             ^
  symbol:   class TextInlineViewPlaceholderSpan
  location: class CustomMountingManager
Note: /Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expensify/react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/MarkdownFontFamilySpan.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expensify/react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/CustomFabricUIManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expensify_react-native-live-markdown:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.

BUILD FAILED in 36s
249 actionable tasks: 38 executed, 201 from cache, 10 up-to-date
Error: /Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64 exited with non-zero code: 1
Error: /Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64 exited with non-zero code: 1
    at ChildProcess.completionListener (/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expo/spawn-async/build/spawnAsync.js:42:23)
    at Object.onceWrapper (node:events:632:26)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at ChildProcess._handle.onexit (node:internal/child_process:303:5)
    ...
    at spawnAsync (/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expo/spawn-async/build/spawnAsync.js:7:23)
    at spawnGradleAsync (/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:96:48)
    at assembleAsync (/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:74:18)
    at runAndroidAsync (/Users/sleepdev-1/Desktop/apps/practice-apps/keep-memo/node_modules/@expo/cli/build/src/run/android/runAndroidAsync.js:45:37)
error Command failed with exit code 1.
@tomekzaw
Copy link
Collaborator

tomekzaw commented Jul 20, 2024

Hi @abdulmateentechbits, thanks for opening this issue.

Looks like this issue is a duplicate of #221.

Support for 0.74 will be added in #358.

@tomekzaw
Copy link
Collaborator

Closing this since #358 was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants