Can't build with new architecture on 0.69.5 (error: cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED);

Please provide the following:

  1. SDK Version:46.0.9
  2. Platforms(Android/iOS/web/all):Android
  3. npx expo run:android in bare workflow

Build failed at MainActivity.Java with this error

error: cannot find symbol
reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED);
^
symbol: variable reactRootView
location: class MainActivity
D:\ReactNative\Projects\JoTune\UI\NduleAfrik\android\app\src\main\java\com\lordisasi\nduleafrik\MainActivity.java:39: error: cannot find symbol
return reactRootView;
^
symbol: variable reactRootView
location: class MainActivity
D:\ReactNative\Projects\JoTune\UI\NduleAfrik\android\app\src\main\java\com\lordisasi\nduleafrik\MainActivity.java:41: error: method does not override or implement a method from a supertype
@Override
^
D:\ReactNative\Projects\JoTune\UI\NduleAfrik\android\app\src\main\java\com\lordisasi\nduleafrik\MainApplication.java:62: error: cannot find symbol
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
^
symbol: variable IS_NEW_ARCHITECTURE_ENABLED
location: class BuildConfig
D:\ReactNative\Projects\JoTune\UI\NduleAfrik\android\app\src\main\java\com\lordisasi\nduleafrik\MainApplication.java:62: error: illegal parenthesized expression
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
^
D:\ReactNative\Projects\JoTune\UI\NduleAfrik\android\app\src\main\java\com\lordisasi\nduleafrik\MainApplication.java:73: error: cannot find symbol
ReactFeatureFlags.useTurboModules = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
^
symbol: variable IS_NEW_ARCHITECTURE_ENABLED
location: class BuildConfig
Note: D:\ReactNative\Projects\JoTune\UI\NduleAfrik\android\app\src\debug\java\com\lordisasi\nduleafrik\ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
6 errors

I’ve tried all proccess here Upgrade React Native applications but I still get the same error. Please, help

Hey @lordisasi,

Expo libraries do not support the new architecture yet. Please refer to the SDK 46 release notes for more information: Expo SDK 46. Today we’re announcing the release of… | by Brent Vatne | Aug, 2022 | Exposition

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.