junedomingo / react-native-rename

Rename react-native app with just one command
MIT License
2.63k stars 261 forks source link

Android build failing - cannot find symbol - com.appName.newarchitecture.MainApplicationReactNativeHost #164

Closed sauzy34 closed 1 year ago

sauzy34 commented 1 year ago

Using "react-native": "0.70.6"

/Users/sauravgupta/work/AppName/android/app/src/main/java/com/appName/MainApplication.java:12: error: package com.appName.newarchitecture does not exist
import com.appName.newarchitecture.MainApplicationReactNativeHost;
                                              ^
/Users/sauravgupta/work/AppName/android/app/src/main/java/com/appName/MainApplication.java:41: error: cannot find symbol
      new MainApplicationReactNativeHost(this);
          ^
  symbol:   class MainApplicationReactNativeHost
  location: class MainApplication
Note: /Users/sauravgupta/work/AppName/android/app/src/debug/java/com/appName/ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
mi5ha commented 1 year ago

@sauzy34 Until there is a fix for this, just undelete those 3 Android files that were deleted and edit package name manually

junedomingo commented 1 year ago

Closing, please check v3