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

compile project(':react-native-exit-app') is Deprecated? #66

Open
VashaMasha opened this issue Jul 3, 2023 · 2 comments
Open

compile project(':react-native-exit-app') is Deprecated? #66

VashaMasha opened this issue Jul 3, 2023 · 2 comments

Comments

@VashaMasha
Copy link

Hi!

I'm trying to implement this library and can't build android app. Looks like compile project(':react-native-exit-app') is deprecated and implementation need to be used instead.

Could you please help with this?

Error:

* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method compile() for arguments [project ':react-native-exit-app'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
@wumke
Copy link
Owner

wumke commented Jul 5, 2023

Hi VashaMasha,

Indeed, over time 'compile' got deprecated... you can simply replace it be 'implementation'.
The manual steps to link the library are no longer needed with the latest React Native releases (I think?), they are only in the readme because in early React Native versions this was a manual step.

Does changing to 'implementation' fix your problem?

@Wildanzr
Copy link

Wildanzr commented May 13, 2024

it works changing compile to implementation.
Tested on:
"react-native": "0.72.10"
"react-native-exit-app": "^2.0.0",

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

No branches or pull requests

3 participants