Description
In Android Studio, real-time compilation and code navigation features malfunction for any code file that imports the react-android package.

Even more strangely, it's possible to navigate to a few individual files within the react-android library using code navigation, but doing so triggers the following error:

This error doesn't affect the running of the project.
Steps to reproduce
My Computer: Mac M4
1 prepare env
2 npx create-expo-app@latest
3 npx expo prebuild --platform android
4 Import android folder to Android Studio
Initially, I encountered the problem shown in the image below:

I resolved this by using the command open -a "Android Studio.app"
After that, the project could compile and run normally. but the strange problems I described above will then occur.
React Native Version
0.79.5
Affected Platforms
Build - MacOS, Runtime - Android
Output of npx @react-native-community/cli info
System:
OS: macOS 15.1
CPU: (16) arm64 Apple M4 Max
Memory: 3.17 GB / 48.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 24.5.0
path: /opt/homebrew/bin/node
Yarn: Not Found
npm:
version: 11.5.1
path: /opt/homebrew/bin/npm
Watchman:
version: 2025.08.04.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK: Not Found
Android SDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.26094.121.2512.13840223
Xcode:
version: /undefined
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.5
wanted: 0.79.5
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
Could not determine the dependencies of task ':app:ijDownloadArtifact147ec5c3-778'.
> Could not resolve all dependencies for configuration ':app:downloadArtifact_ddb30512-4675-43ad-b04f-77e7a7030bd0'.
> Could not resolve com.facebook.react:react-android:0.79.5.
Required by:
project :app
> Unable to find a matching variant of com.facebook.react:react-android:0.79.5:
- Variant 'debugVariantDefaultApiPublication'
- Variant 'debugVariantDefaultRuntimePublication'
- Variant 'debugVariantDefaultSourcePublication'
- Variant 'releaseVariantDefaultApiPublication'
- Variant 'releaseVariantDefaultRuntimePublication'
- Variant 'releaseVariantDefaultSourcePublication'
* Try:
> No matching variant errors are explained in more detail at https://docs.gradle.org/8.13/userguide/variant_model.html#sub:variant-no-match.
> Review the variant matching algorithm at https://docs.gradle.org/8.13/userguide/variant_attributes.html#sec:abm_algorithm.
> 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
Ask Gemini
MANDATORY Reproducer
https://github.com/react-native-community/template.git
Screenshots and Videos
Description
In Android Studio, real-time compilation and code navigation features malfunction for any code file that imports the react-android package.

Even more strangely, it's possible to navigate to a few individual files within the react-android library using code navigation, but doing so triggers the following error:

This error doesn't affect the running of the project.
Steps to reproduce
My Computer: Mac M4
1 prepare env
2 npx create-expo-app@latest
3 npx expo prebuild --platform android
4 Import android folder to Android Studio
Initially, I encountered the problem shown in the image below:

I resolved this by using the command open -a "Android Studio.app"
After that, the project could compile and run normally. but the strange problems I described above will then occur.
React Native Version
0.79.5
Affected Platforms
Build - MacOS, Runtime - Android
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
https://github.com/react-native-community/template.git
Screenshots and Videos