SFDX-Data-Move-Utility icon indicating copy to clipboard operation
SFDX-Data-Move-Utility copied to clipboard

Android installation issue solved

Open sipotat opened this issue 1 year ago • 3 comments
trafficstars

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.

sipotat avatar Apr 01 '24 18:04 sipotat

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.

alanwong0922 avatar Apr 03 '24 09:04 alanwong0922

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

shivanitp avatar Jun 06 '24 10:06 shivanitp

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')

ArturV93 avatar Jun 14 '24 14:06 ArturV93