Skip to content
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

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':dr.pogodin_react-native-fs:compileReleaseKotlin'. #106

Open
imranAfzal43A opened this issue Feb 14, 2025 · 7 comments
Labels
Expo Expo-related.

Comments

@imranAfzal43A
Copy link

Eas build failed and local build failed. Here's the logs:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':dr.pogodin_react-native-fs:compileReleaseKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$Gradn
Compilation error. See log for more details

I am using react native expo 52

@birdofpreyru birdofpreyru added the Expo Expo-related. label Feb 14, 2025
@birdofpreyru
Copy link
Owner

I don't support Expo (although, I guess, it should work) 🤷‍♂
Also the support of old react architecture has been dropped in the last release. If you are trying to use it with the old arch then it is the problem.

@imranAfzal43A
Copy link
Author

It works with expo in development build. I have been using it for the last few months without any issue. But now suddenly, it stops bundling. I have enabled the new architecture, but still, it's not bundling. Here's the more logs;
Task :dr.pogodin_react-native-fs:compileReleaseKotlin FAILED
e: file:///Users/imranjutt/Desktop/githubrepo/hapos/node_modules/@dr.pogodin/react-native-fs/android/src/main/java/com/drpogodin/reactnativefs/ReactNativeFsPackage.kt:22:47 None of the following functions can be called with the arguments supplied:
public constructor ReactModuleInfo(_name: String, _className: String, _canOverrideExistingModule: Boolean, _needsEagerInit: Boolean, isCxxModule: Boolean, isTurboModule: Boolean) defined in com.facebook.react.module.model.ReactModuleInfo
public constructor ReactModuleInfo(name: String, className: String, canOverrideExistingModule: Boolean, needsEagerInit: Boolean, hasConstants: Boolean, isCxxModule: Boolean, isTurboModule: Boolean) defined in com.facebook.react.module.model.ReactModuleInfo

@MrXyfir
Copy link

MrXyfir commented Feb 14, 2025

npm install --save @dr.pogodin/[email protected]

It'd probably be better if a new (old) build was released as 2.32.0 and then 2.31 gets released as 3 so that people don't unexpectedly hit this issue.

@birdofpreyru
Copy link
Owner

¯\_(ツ)_/¯

It'd probably be better if Meta, or Expo place me on their payroll with a nice compensation, or every user actively donate me, so that I actually had a capacity to bother myself with what is convenient for every user of this and other RN libraries I work on 🤣 As of now, I have to spend 40h/week working for commercial projects that have nothing to do with React Native / this library; and even my pet projects I do in my free time, for which I need this library, and which are the reason I forked and maintain it, also require a bunch of efforts not related to this lib.

You may guess, what do I think when ppl do not read release notes carefully, do not put efforts into investigating themselves the issues with this library, and insist on better support, more careful version management, etc. :)

@imranAfzal43A
Copy link
Author

npm install --save @dr.pogodin/[email protected]

It'd probably be better if a new (old) build was released as 2.32.0 and then 2.31 gets released as 3 so that people don't unexpectedly hit this issue.

I used this version with and without the new architecture enabled. But the build failed again.

@MrXyfir
Copy link

MrXyfir commented Feb 15, 2025

@imranAfzal43A Are you sure it's the same issue? After I fixed this I got another issue from the root expo package with some Kotlin versioning issue or something like that. I had to downgrade Expo as well to 52.0.18. If that's not the issue, try clearing out your gradle and expo cache or something...

@imranAfzal43A
Copy link
Author

imranAfzal43A commented Feb 16, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expo Expo-related.
Projects
None yet
Development

No branches or pull requests

3 participants