facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.58k stars 24.37k forks source link

Can't build with new architecture on 0.69 (error: package com.facebook.react.common.mapbuffer does not exist) #34279

Closed JB-CHAUVIN closed 1 year ago

JB-CHAUVIN commented 2 years ago

I have the following error with RN 0.69 when I enable new architecture.

Build Target(s)

Android emulator

Output of react-native info

System: OS: macOS 12.2.1 CPU: (10) x64 Apple M1 Pro Memory: 25.27 MB / 32.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.19.1 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 6.14.16 - /usr/local/bin/npm Watchman: 2022.06.13.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 26, 30, 31, 32 Build Tools: 29.0.2, 29.0.3, 31.0.0, 32.0.0, 32.1.0 System Images: android-26 | Google APIs ARM 64 v8a, android-30 | Google APIs ARM 64 v8a, android-32 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8309675 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 11.0.15 - /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.0.0 => 18.0.0 react-native: 0.69.3 => 0.69.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Issue and Reproduction Steps

Hello,

When I run the run-android command I have the following error :

/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:18: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/StateWrapper.java:12: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:356: error: cannot find symbol
      MapBuffer localData,
      ^
  symbol:   class MapBuffer
  location: class ViewManager<T,C>
  where T,C are type-variables:
    T extends View declared in class ViewManager
    C extends ReactShadowNode declared in class ViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:357: error: cannot find symbol
      MapBuffer props,
      ^
  symbol:   class MapBuffer
  location: class ViewManager<T,C>
  where T,C are type-variables:
    T extends View declared in class ViewManager
    C extends ReactShadowNode declared in class ViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:359: error: cannot find symbol
      @Nullable MapBuffer state,
                ^
  symbol:   class MapBuffer
  location: class ViewManager<T,C>
  where T,C are type-variables:
    T extends View declared in class ViewManager
    C extends ReactShadowNode declared in class ViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/StateWrapper.java:28: error: cannot find symbol
  ReadableMapBuffer getStateDataMapBuffer();
  ^
  symbol:   class ReadableMapBuffer
  location: interface StateWrapper
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:26: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:29: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:46: error: cannot find symbol
import com.facebook.react.views.view.ReactMapBufferViewManager;
                                    ^
  symbol:   class ReactMapBufferViewManager
  location: package com.facebook.react.views.view
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:47: error: cannot find symbol
import com.facebook.react.views.view.ReactViewManagerWrapper;
                                    ^
  symbol:   class ReactViewManagerWrapper
  location: package com.facebook.react.views.view
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:399: error: cannot find symbol
      @NonNull MapBuffer localData,
               ^
  symbol:   class MapBuffer
  location: class MountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:400: error: cannot find symbol
      @NonNull MapBuffer props,
               ^
  symbol:   class MapBuffer
  location: class MountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:401: error: cannot find symbol
      @Nullable MapBuffer state,
                ^
  symbol:   class MapBuffer
  location: class MountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:1075: error: cannot find symbol
    @Nullable final ReactViewManagerWrapper mViewManager;
                    ^
  symbol:   class ReactViewManagerWrapper
  location: class ViewState
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:1082: error: cannot find symbol
        int reactTag, @Nullable View view, @Nullable ReactViewManagerWrapper viewManager) {
                                                     ^
  symbol:   class ReactViewManagerWrapper
  location: class ViewState
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:1089: error: cannot find symbol
        @Nullable ReactViewManagerWrapper viewManager,
                  ^
  symbol:   class ReactViewManagerWrapper
  location: class ViewState
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:54: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:457: error: cannot find symbol
      ReadableMapBuffer attributedString,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:458: error: cannot find symbol
      ReadableMapBuffer paragraphAttributes,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:543: error: cannot find symbol
      ReadableMapBuffer localData,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:544: error: cannot find symbol
      ReadableMapBuffer props,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:545: error: cannot find symbol
      @Nullable ReadableMapBuffer state,
                ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java:14: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBufferSoLoader;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java:19: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java:46: error: cannot find symbol
  private native ReadableMapBuffer getStateMapBufferDataImpl();
                 ^
  symbol:   class ReadableMapBuffer
  location: class StateWrapperImpl
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java:50: error: cannot find symbol
  public ReadableMapBuffer getStateDataMapBuffer() {
         ^
  symbol:   class ReadableMapBuffer
  location: class StateWrapperImpl
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:19: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:141: error: cannot find symbol
  public static TextAttributeProps fromMapBuffer(MapBuffer props) {
                                                 ^
  symbol:   class MapBuffer
  location: class TextAttributeProps
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:419: error: cannot find symbol
  private void setFontVariant(@Nullable MapBuffer fontVariant) {
                                        ^
  symbol:   class MapBuffer
  location: class TextAttributeProps
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:31: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:81: error: cannot find symbol
  private static final LruCache<MapBuffer, Spannable> sSpannableCache =
                                ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:100: error: cannot find symbol
  public static boolean isRTL(MapBuffer attributedString) {
                              ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:114: error: cannot find symbol
      Context context, MapBuffer fragments, SpannableStringBuilder sb, List<SetSpanOperation> ops) {
                       ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:203: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:228: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:351: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:352: error: cannot find symbol
      MapBuffer paragraphAttributes,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:554: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:555: error: cannot find symbol
      MapBuffer paragraphAttributes,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:18: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:145: error: cannot find symbol
  private Object getReactTextUpdate(ReactTextView view, ReactStylesDiffMap props, MapBuffer state) {
                                                                                  ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:207: error: cannot find symbol
      MapBuffer localData,
      ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:208: error: cannot find symbol
      MapBuffer props,
      ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:209: error: cannot find symbol
      @Nullable MapBuffer state,
                ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:367: error: reference to measure is ambiguous
        .measure(
        ^
  both method measure(Context,ReadableMap,ReadableMap,ReadableMap,float,YogaMeasureMode,float,YogaMeasureMode,float[]) in ViewManager and method measure(Context,MapBuffer,MapBuffer,MapBuffer,float,YogaMeasureMode,float,YogaMeasureMode,float[]) in ViewManager match
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:188: error: package ReactViewManagerWrapper does not exist
            new ReactViewManagerWrapper.DefaultViewManager((ViewManager) mRootViewManager),
                                       ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:603: error: cannot find symbol
    ReactViewManagerWrapper viewManager = null;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:614: error: cannot find symbol
          props instanceof ReadableMapBuffer
                           ^
  symbol:   class ReadableMapBuffer
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:615: error: cannot find symbol
              ? ReactMapBufferViewManager.INSTANCE
                ^
  symbol:   variable ReactMapBufferViewManager
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:616: error: package ReactViewManagerWrapper does not exist
              : new ReactViewManagerWrapper.DefaultViewManager(
                                           ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:784: error: cannot find symbol
    ReactViewManagerWrapper viewManager = viewState.mViewManager;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:834: error: cannot find symbol
    ReactViewManagerWrapper viewManager = viewState.mViewManager;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:924: error: cannot find symbol
    ReactViewManagerWrapper viewManager = viewState.mViewManager;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java:49: error: cannot find symbol
      MapBufferSoLoader.staticInit();
      ^
  symbol:   variable MapBufferSoLoader
  location: class FabricJSIModuleProvider
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:145: error: package MapBuffer does not exist
    Iterator<MapBuffer.Entry> iterator = props.iterator();
                      ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:147: error: package MapBuffer does not exist
      MapBuffer.Entry entry = iterator.next();
               ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:239: error: reference to setFontVariant is ambiguous
    result.setFontVariant(getArrayProp(props, ViewProps.FONT_VARIANT));
          ^
  both method setFontVariant(ReadableArray) in TextAttributeProps and method setFontVariant(MapBuffer) in TextAttributeProps match
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:426: error: package MapBuffer does not exist
    Iterator<MapBuffer.Entry> iterator = fontVariant.iterator();
                      ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:428: error: package MapBuffer does not exist
      MapBuffer.Entry entry = iterator.next();
               ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:101: error: cannot find symbol
    MapBuffer fragments = attributedString.getMapBuffer(AS_KEY_FRAGMENTS);
    ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:106: error: cannot find symbol
    MapBuffer fragment = fragments.getMapBuffer((short) 0);
    ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:107: error: cannot find symbol
    MapBuffer textAttributes = fragment.getMapBuffer(FR_KEY_TEXT_ATTRIBUTES);
    ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:117: error: cannot find symbol
      MapBuffer fragment = fragments.getMapBuffer(i);
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:115: error: cannot find symbol
      MapBuffer stateMapBuffer = stateWrapper.getStateDataMapBuffer();
      ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:147: error: cannot find symbol
    MapBuffer attributedString = state.getMapBuffer(TX_STATE_KEY_ATTRIBUTED_STRING);
    ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:148: error: cannot find symbol
    MapBuffer paragraphAttributes = state.getMapBuffer(TX_STATE_KEY_PARAGRAPH_ATTRIBUTES);
    ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
66 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 9m 6s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: /packages/mobile/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeJava.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeICU.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeLite.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeEmscripten.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeJava.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeICU.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeLite.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesPlatformUnicode.a(PlatformUnicodeEmscripten.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesOptimizer.a(WasmSimplify.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesOptimizer.a(WasmSimplify.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(OSCompatEmscripten.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(OSCompatWindows.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(PageAccessTrackerPosix.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(PerfSection.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(OSCompatEmscripten.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(OSCompatWindows.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(PageAccessTrackerPosix.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesSupport.a(PerfSection.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFlowParser.a(FlowParser.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFlowParser.a(FlowParser.cpp.o) has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: libhermesFlowParser.a the table of contents is empty (no object file members in the library define global symbols)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFrontend.a(IRInstrument.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFrontend.a(WasmIntrinsics.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFrontend.a(EmitWasmIntrinsics.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFrontend.a(IRInstrument.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFrontend.a(WasmIntrinsics.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhermesFrontend.a(EmitWasmIntrinsics.cpp.o) has no symbols
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /packages/mobile/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/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: /packages/mobile/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.
Note: /packages/mobile/node_modules/react-native-background-timer/android/src/main/java/com/ocetnik/timer/BackgroundTimerModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-camera/android/src/main/java/com/google/android/cameraview/Camera2.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /packages/mobile/node_modules/react-native-code-push/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-code-push/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-community/cameraroll/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-community/geolocation/android/src/main/java/com/reactnativecommunity/geolocation/GeolocationModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-community/picker/android/src/main/java/com/reactnativecommunity/picker/PickerItemSelectEvent.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-community/progress-bar-android/android/src/main/java/com/reactnativecommunity/androidprogressbar/ProgressBarContainerView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-document-picker/android/src/main/java/com/reactnativedocumentpicker/DocumentPickerModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-geolocation-service/android/src/main/java/com/agontuk/RNFusedLocation/LocationUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-firebase/analytics/android/src/main/java/io/invertase/firebase/analytics/UniversalFirebaseAnalyticsModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-firebase/dynamic-links/android/src/main/java/io/invertase/firebase/dynamiclinks/ReactNativeFirebaseDynamicLinksModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/@react-native-firebase/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-orientation-locker/android/src/main/java/org/wonday/orientation/OrientationModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /packages/mobile/node_modules/react-native-sentry/android/src/main/java/io/sentry/RNSentryModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /packages/mobile/node_modules/react-native-sound/android/src/main/java/com/zmxv/RNSound/RNSoundModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-ssl-pinning/android/src/main/java/com/toyberman/Utils/OkHttpUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/VirtualView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /packages/mobile/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /packages/mobile/node_modules/react-native/sdks/hermes/lib/Platform/Intl/java/com/facebook/hermes/intl/JSObjects.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /node_modules/rn-range-slider/android/src/main/java/com/ashideas/rnrangeslider/RangeSliderViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:18: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/StateWrapper.java:12: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:356: error: cannot find symbol
      MapBuffer localData,
      ^
  symbol:   class MapBuffer
  location: class ViewManager<T,C>
  where T,C are type-variables:
    T extends View declared in class ViewManager
    C extends ReactShadowNode declared in class ViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:357: error: cannot find symbol
      MapBuffer props,
      ^
  symbol:   class MapBuffer
  location: class ViewManager<T,C>
  where T,C are type-variables:
    T extends View declared in class ViewManager
    C extends ReactShadowNode declared in class ViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:359: error: cannot find symbol
      @Nullable MapBuffer state,
                ^
  symbol:   class MapBuffer
  location: class ViewManager<T,C>
  where T,C are type-variables:
    T extends View declared in class ViewManager
    C extends ReactShadowNode declared in class ViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/StateWrapper.java:28: error: cannot find symbol
  ReadableMapBuffer getStateDataMapBuffer();
  ^
  symbol:   class ReadableMapBuffer
  location: interface StateWrapper
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:26: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:29: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:46: error: cannot find symbol
import com.facebook.react.views.view.ReactMapBufferViewManager;
                                    ^
  symbol:   class ReactMapBufferViewManager
  location: package com.facebook.react.views.view
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:47: error: cannot find symbol
import com.facebook.react.views.view.ReactViewManagerWrapper;
                                    ^
  symbol:   class ReactViewManagerWrapper
  location: package com.facebook.react.views.view
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:399: error: cannot find symbol
      @NonNull MapBuffer localData,
               ^
  symbol:   class MapBuffer
  location: class MountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:400: error: cannot find symbol
      @NonNull MapBuffer props,
               ^
  symbol:   class MapBuffer
  location: class MountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:401: error: cannot find symbol
      @Nullable MapBuffer state,
                ^
  symbol:   class MapBuffer
  location: class MountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:1075: error: cannot find symbol
    @Nullable final ReactViewManagerWrapper mViewManager;
                    ^
  symbol:   class ReactViewManagerWrapper
  location: class ViewState
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:1082: error: cannot find symbol
        int reactTag, @Nullable View view, @Nullable ReactViewManagerWrapper viewManager) {
                                                     ^
  symbol:   class ReactViewManagerWrapper
  location: class ViewState
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:1089: error: cannot find symbol
        @Nullable ReactViewManagerWrapper viewManager,
                  ^
  symbol:   class ReactViewManagerWrapper
  location: class ViewState
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:54: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:457: error: cannot find symbol
      ReadableMapBuffer attributedString,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:458: error: cannot find symbol
      ReadableMapBuffer paragraphAttributes,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:543: error: cannot find symbol
      ReadableMapBuffer localData,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:544: error: cannot find symbol
      ReadableMapBuffer props,
      ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java:545: error: cannot find symbol
      @Nullable ReadableMapBuffer state,
                ^
  symbol:   class ReadableMapBuffer
  location: class FabricUIManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java:14: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBufferSoLoader;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java:19: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java:46: error: cannot find symbol
  private native ReadableMapBuffer getStateMapBufferDataImpl();
                 ^
  symbol:   class ReadableMapBuffer
  location: class StateWrapperImpl
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java:50: error: cannot find symbol
  public ReadableMapBuffer getStateDataMapBuffer() {
         ^
  symbol:   class ReadableMapBuffer
  location: class StateWrapperImpl
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:19: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:141: error: cannot find symbol
  public static TextAttributeProps fromMapBuffer(MapBuffer props) {
                                                 ^
  symbol:   class MapBuffer
  location: class TextAttributeProps
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:419: error: cannot find symbol
  private void setFontVariant(@Nullable MapBuffer fontVariant) {
                                        ^
  symbol:   class MapBuffer
  location: class TextAttributeProps
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:31: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:81: error: cannot find symbol
  private static final LruCache<MapBuffer, Spannable> sSpannableCache =
                                ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:100: error: cannot find symbol
  public static boolean isRTL(MapBuffer attributedString) {
                              ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:114: error: cannot find symbol
      Context context, MapBuffer fragments, SpannableStringBuilder sb, List<SetSpanOperation> ops) {
                       ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:203: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:228: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:351: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:352: error: cannot find symbol
      MapBuffer paragraphAttributes,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:554: error: cannot find symbol
      MapBuffer attributedString,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:555: error: cannot find symbol
      MapBuffer paragraphAttributes,
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:18: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:145: error: cannot find symbol
  private Object getReactTextUpdate(ReactTextView view, ReactStylesDiffMap props, MapBuffer state) {
                                                                                  ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:207: error: cannot find symbol
      MapBuffer localData,
      ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:208: error: cannot find symbol
      MapBuffer props,
      ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:209: error: cannot find symbol
      @Nullable MapBuffer state,
                ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java:367: error: reference to measure is ambiguous
        .measure(
        ^
  both method measure(Context,ReadableMap,ReadableMap,ReadableMap,float,YogaMeasureMode,float,YogaMeasureMode,float[]) in ViewManager and method measure(Context,MapBuffer,MapBuffer,MapBuffer,float,YogaMeasureMode,float,YogaMeasureMode,float[]) in ViewManager match
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:188: error: package ReactViewManagerWrapper does not exist
            new ReactViewManagerWrapper.DefaultViewManager((ViewManager) mRootViewManager),
                                       ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:603: error: cannot find symbol
    ReactViewManagerWrapper viewManager = null;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:614: error: cannot find symbol
          props instanceof ReadableMapBuffer
                           ^
  symbol:   class ReadableMapBuffer
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:615: error: cannot find symbol
              ? ReactMapBufferViewManager.INSTANCE
                ^
  symbol:   variable ReactMapBufferViewManager
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:616: error: package ReactViewManagerWrapper does not exist
              : new ReactViewManagerWrapper.DefaultViewManager(
                                           ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:784: error: cannot find symbol
    ReactViewManagerWrapper viewManager = viewState.mViewManager;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:834: error: cannot find symbol
    ReactViewManagerWrapper viewManager = viewState.mViewManager;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java:924: error: cannot find symbol
    ReactViewManagerWrapper viewManager = viewState.mViewManager;
    ^
  symbol:   class ReactViewManagerWrapper
  location: class SurfaceMountingManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java:49: error: cannot find symbol
      MapBufferSoLoader.staticInit();
      ^
  symbol:   variable MapBufferSoLoader
  location: class FabricJSIModuleProvider
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:145: error: package MapBuffer does not exist
    Iterator<MapBuffer.Entry> iterator = props.iterator();
                      ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:147: error: package MapBuffer does not exist
      MapBuffer.Entry entry = iterator.next();
               ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:239: error: reference to setFontVariant is ambiguous
    result.setFontVariant(getArrayProp(props, ViewProps.FONT_VARIANT));
          ^
  both method setFontVariant(ReadableArray) in TextAttributeProps and method setFontVariant(MapBuffer) in TextAttributeProps match
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:426: error: package MapBuffer does not exist
    Iterator<MapBuffer.Entry> iterator = fontVariant.iterator();
                      ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java:428: error: package MapBuffer does not exist
      MapBuffer.Entry entry = iterator.next();
               ^
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:101: error: cannot find symbol
    MapBuffer fragments = attributedString.getMapBuffer(AS_KEY_FRAGMENTS);
    ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:106: error: cannot find symbol
    MapBuffer fragment = fragments.getMapBuffer((short) 0);
    ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:107: error: cannot find symbol
    MapBuffer textAttributes = fragment.getMapBuffer(FR_KEY_TEXT_ATTRIBUTES);
    ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java:117: error: cannot find symbol
      MapBuffer fragment = fragments.getMapBuffer(i);
      ^
  symbol:   class MapBuffer
  location: class TextLayoutManagerMapBuffer
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:115: error: cannot find symbol
      MapBuffer stateMapBuffer = stateWrapper.getStateDataMapBuffer();
      ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:147: error: cannot find symbol
    MapBuffer attributedString = state.getMapBuffer(TX_STATE_KEY_ATTRIBUTED_STRING);
    ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java:148: error: cannot find symbol
    MapBuffer paragraphAttributes = state.getMapBuffer(TX_STATE_KEY_PARAGRAPH_ATTRIBUTES);
    ^
  symbol:   class MapBuffer
  location: class ReactTextViewManager
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
66 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 9m 6s

    at makeError (/packages/mobile/node_modules/execa/index.js:174:9)
    at /packages/mobile/node_modules/execa/index.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async runOnAllDevices (/packages/mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/packages/mobile/node_modules/@react-native-community/cli/build/index.js:192:9)
JB-CHAUVIN commented 2 years ago

It is like .tk files are ignored ? I don't know...

raajnadar commented 2 years ago

Did you try cd android && ./gradlew clean? and run again

And it is better to upgrade versions one by one

JB-CHAUVIN commented 2 years ago

Yes I tried @raajnadar ! still not working

ok thanks for the tips.. will do this next time

JB-CHAUVIN commented 2 years ago

Any ideas ? Still got the problem after many cleaning :

> Task :ReactAndroid:compileReleaseJavaWithJavac FAILED
/Users/jbchauvin/Documents/Cegedim/Code/Mobile/1933/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:18: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.MapBuffer;
                                          ^
/Users/jbchauvin/Documents/Cegedim/Code/Mobile/1933/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/StateWrapper.java:12: error: package com.facebook.react.common.mapbuffer does not exist
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
                                          ^
/Users/jbchauvin/Documents/Cegedim/Code/Mobile/1933/packages/mobile/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java:356: error: cannot find symbol
      MapBuffer localData,
JB-CHAUVIN commented 2 years ago

After investigation : the app is building fine on Android WITHOUT new architecture enabled. So that's the problem...

cortinico commented 2 years ago

the app is building fine on Android WITHOUT new architecture enabled.

Yup that's a bug. Are you able to provide a reproducer of any sort?

github-actions[bot] commented 2 years ago
:warning: Missing Reproducible Example
:information_source: It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner.
JB-CHAUVIN commented 2 years ago

the app is building fine on Android WITHOUT new architecture enabled.

Yup that's a bug. Are you able to provide a reproducer of any sort?

The problem is that my project is big I and I can't take the risk of sharing the code :/

cortinico commented 2 years ago

The problem is that my project is big I and I can't take the risk of sharing the code :/

I'm not asking for your project but for a reproducer: https://stackoverflow.com/help/minimal-reproducible-example

AliMSbaee commented 2 years ago

Same 66 errors here!

lordkyle0 commented 2 years ago

cannot find symbol if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { symbol: variable IS_NEW_ARCHITECTURE_ENABLED location: class BuildConfig

located /home/expo/workingdir/build/android/app/src/main/java/com/lordisasi/nduleafrik/MainApplication.java:62:

/home/expo/workingdir/build/android/app/src/main/java/com/lordisasi/nduleafrik/MainActivity.java:34: error: cannot find symbol return reactRootView; ^ symbol: variable reactRootView location: class MainActivity /home/expo/workingdir/build/android/app/src/main/java/com/lordisasi/nduleafrik/MainActivity.java:36: error: method does not override or implement a method from a supertype @Override ^ MainApplication.java

package com.lordisasi.nduleafrik;

import android.content.res.Configuration; import expo.modules.ApplicationLifecycleDispatcher; import expo.modules.ReactNativeHostWrapper;

import android.app.Application; import android.content.Context; import android.content.res.Configuration; import androidx.annotation.NonNull;

import com.facebook.react.PackageList; import com.facebook.react.ReactApplication; import com.reactnativecommunity.picker.RNCPickerPackage; import com.reactnativecommunity.picker.RNCPickerPackage; import com.reactnativecommunity.picker.RNCPickerPackage; import com.facebook.react.ReactInstanceManager; import com.facebook.react.BuildConfig; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.react.config.ReactFeatureFlags; import com.facebook.soloader.SoLoader; import com.lordisasi.nduleafrik.newarchitecture.MainApplicationReactNativeHost;

import android.content.res.Configuration; import expo.modules.ApplicationLifecycleDispatcher; import expo.modules.ReactNativeHostWrapper;

import java.lang.reflect.InvocationTargetException; import java.util.List;

public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHostWrapper( this, new ReactNativeHostWrapper(this, new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; }

@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:

  return packages;
}

@Override
protected String getJSMainModuleName() {
  return "index";
}

}));

private final ReactNativeHost mNewArchitectureNativeHost = new ReactNativeHostWrapper(this, new MainApplicationReactNativeHost(this));

@Override public ReactNativeHost getReactNativeHost() { if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { return mNewArchitectureNativeHost; } else { return mReactNativeHost; } }

@Override public void onCreate() { super.onCreate(); // If you opted-in for the New Architecture, we enable the TurboModule system ReactFeatureFlags.useTurboModules = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; SoLoader.init(this, / native exopackage / false);

initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
ApplicationLifecycleDispatcher.onApplicationCreate(this);

}

@Override public void onConfigurationChanged(@NonNull Configuration newConfig) { super.onConfigurationChanged(newConfig); ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig); }

/**

  • Loads Flipper in React Native templates. Call this in the onCreate method with something like
  • initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
  • @param context
  • @param reactInstanceManager / private static void initializeFlipper( Context context, ReactInstanceManager reactInstanceManager) { if (BuildConfig.DEBUG) { try { / We use reflection here to pick up the class that initializes Flipper, since Flipper library is not available in release mode */ Class<?> aClass = Class.forName("com.lordisasi.nduleafrik.ReactNativeFlipper"); aClass .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .invoke(null, context, reactInstanceManager); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } }

MainActivity.java

package com.lordisasi.nduleafrik;

import android.os.Build; import android.os.Bundle;

import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivityDelegate; import com.facebook.react.ReactRootView;

import expo.modules.ReactActivityDelegateWrapper;

public class MainActivity extends ReactActivity { @Override protected void onCreate(Bundle savedInstanceState) { // Set the theme to AppTheme BEFORE onCreate to support // coloring the background, status bar, and navigation bar. // This is required for expo-splash-screen. setTheme(R.style.AppTheme); super.onCreate(null); }

/**

  • Returns the name of the main component registered from JavaScript.
  • This is used to schedule rendering of the component. */ @Override protected String getMainComponentName() { return "main"; }

    /**

  • Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and
  • you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer
  • (Paper). */ @Override protected ReactActivityDelegate createReactActivityDelegate() {
    reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); return reactRootView; } @Override protected boolean isConcurrentRootEnabled() { // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18). // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; }

    /**

  • Align the back button behavior with Android S
  • where moving root activities to background instead of finishing activities.
  • @see onBackPressed */ @Override public void invokeDefaultOnBackPressed() { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) { if (!moveTaskToBack(false)) { // For non-root activities, use the default implementation to finish them. super.invokeDefaultOnBackPressed(); } return; }

    // Use the default back button implementation on Android S // because it's doing more than {@link Activity#moveTaskToBack} in fact. super.invokeDefaultOnBackPressed(); } }

cortinico commented 2 years ago

@OverRide

You're having a typo. It's @Override https://github.com/facebook/react-native/blob/49c90f7a7ee1290bc694184873bdc0e06318ba98/template/android/app/src/main/java/com/helloworld/MainActivity.java#L13

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

cortinico commented 1 year ago

Closing as I provided an answer already