react-native-view-overflow icon indicating copy to clipboard operation
react-native-view-overflow copied to clipboard

A problem occurred configuring project ':react-native-view-overflow'.

Open Usamamalik007 opened this issue 6 years ago • 6 comments

A problem occurred configuring project ':react-native-view-overflow'.

Could not resolve all files for configuration ':react-native-view-overflow:classpath'. Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.1.0/manifest-merger-26.1.0.jar Could not find ddmlib.jar (com.android.tools.ddms:ddmlib:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.1.0/ddmlib-26.1.0.jar Could not find dvlib.jar (com.android.tools:dvlib:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/dvlib/26.1.0/dvlib-26.1.0.jar Could not find common.jar (com.android.tools:common:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/common/26.1.0/common-26.1.0.jar

Usamamalik007 avatar Feb 20 '19 10:02 Usamamalik007

Recheck your linking

sibelius avatar Feb 20 '19 11:02 sibelius

If you could please elaborate a little.

Usamamalik007 avatar Feb 20 '19 11:02 Usamamalik007

try to run react-native link again

I think the link part is wrong

sibelius avatar Feb 20 '19 11:02 sibelius

I have, it has been linked successfully but still the problem is same.

Usamamalik007 avatar Feb 20 '19 11:02 Usamamalik007

I fixed this by adding this to android/build.gradle

subprojects { project ->
    if (project.name.contains('react-native-view-overflow')) {
        buildscript {
            repositories {
                maven { url "https://maven.google.com" }
            }
        }
    }
}

junocs avatar Mar 25 '19 08:03 junocs

@junocs does it makes sense to add this info to docs?

jgcmarins avatar Mar 25 '19 12:03 jgcmarins