You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Native Android build fails with "package com.facebook.react.common.annotations.internal.LegacyArchitectureLogger; does not exist" on React Native 0.78 #2676
React Native Android build fails with "package com.facebook.react.common.annotations.internal does not exist" on React Native 0.78
I'm encountering a build failure when running yarn android for my React Native project (RN 0.78). The error occurs during :app:compileDebugJavaWithJavac and seems related to autogenerated New Architecture files. iOS builds work fine.
Error Snippet:
/Users/socon/Documents/Chinmay/socon-mobile/android/app/build/generated/autolinking/src/main/java/com/facebook/react/ReactNativeApplicationEntryPoint.java:8: error: package com.facebook.react.common.annotations.internal does not exist import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger;
What I've tried:
./gradlew clean (succeeds but doesn't resolve)
./gradlew build fails with same error
Toggled newArchEnabled in gradle.properties (both true/false)
Question:
How can I resolve this missing package error related to New Architecture autogenerated files? Specifically:
Are there known solutions for the LegacyArchitectureLogger import failure in autogenerated code?