-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build from source error: Cannot access 'serviceOf': it is internal in 'org.gradle.configurationcache.extensions' #32858
Comments
I saw that
I tried adding |
Thanks for giving it a try @Avishayy
Can you share your project?
Ideally you should not have to deal with this at all. |
Actually, I don't want to proceed with this issue anymore as my goal was to get debugging to work. After failing to get building to work, I tried to make a minimal reproducer with Eventually, I found out I can just remove the class I want to debug from the |
I was able to solve this by modifying
|
But this time i have to compile with jdk 11 and it causes an error while compiling firebase crashlytics :( |
Thanks, turns out I also forgot to apply the |
Regarding last post , I disagree the issue was resolved just changing gradle version. Because I have last gradle release (8.10) and it happens to me. So my current configuration is 👍 current Java version
current Gradle version
current npm version and dependencies
current android/build.gradle
current android/settings.gradle
command run :
error got :
following this issue By the way , Gradle 8.10 doesn't have anymore |
UPDATE: after some more deep investigation at Gradle sources I figured probably that
in So I changed that import with :
as I found in my Gradle 8.10 version. So I re-executed the command :
and seems the command is still working, no more errors about |
cc. @cortinico |
Also seeing this issue with the latest React Native 0.75.2 and Gradle 8.8 |
Fix is here: #46367 |
@cortinico I am also getting the same error while upgrading sample app from 0.75.2 to 0.76.0-rc.0?
I followed changes suggested by upgrade helper Gradle version
|
I am able to resolve this by removing this package: |
Closing as this will be fixed in 0.75.3 and 0.76.x |
@cortinico is it possible to port it back to 0.73.x, we are currently on 0.73.2 and it's quite hard to upgrade to 0.75.x right now. this specifically is blocking us to upgrade both Gradle & AGP to latest on our production project. |
You can request pick requests at: |
I have same issue . Help for me downgrade java from 23 to 17 rm -rf android node_module package-lock.json
npm i
npm run android for more info looks in your https://expo.dev/accounts/... in page -> builds. Like |
you can use patch-package |
Description
I've been following the Building from source guide and I can't get
packages/react-native-gradle-plugin
's build to workThe only errors I have when building through Android Studio are:
I couldn't find any documentation on the configurationcache plugin and I'm pretty inept with Gradle in general.
Version
0.66.4
Output of
npx react-native info
Steps to reproduce
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: