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

Android installation issue solved #223

Open
sipotat opened this issue Apr 1, 2024 · 3 comments
Open

Android installation issue solved #223

sipotat opened this issue Apr 1, 2024 · 3 comments

Comments

@sipotat
Copy link

sipotat commented Apr 1, 2024

When trying to install according to the docs, I ran into an error with this line in android/app/build.gradle:
compile project(':react-native-version-check')

Changing it to this line solved the problem:
runtimeOnly project(':react-native-version-check')

Hope it helps.

@alanwong0922
Copy link

alanwong0922 commented Apr 3, 2024

android/app/build.gradle:

dependencies {
    ...
    runtimeOnly project(':react-native-version-check')
     ...
}

I would failed to build the. application.

FAILURE: Build failed with an exception.

* Where:
Build file '.../XXX/node_modules/react-native-version-check/android/build.gradle' line: 23

* What went wrong:
A problem occurred evaluating project ':react-native-version-check'.
> Could not find method compile() for arguments [com.facebook.react:react-native:0.20.+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

@shivanitp
Copy link

Did you find a solution? I'm encountering the same problem.

@ArturV93
Copy link

Did you find a solution? I'm encountering the same problem.

Did you find a solution? I'm encountering the same problem.

In my case, I had to change to implementation project(':react-native-version-check')

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

4 participants