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

Android build is failing with - Could not find me.relex:photodraweeview:1.1.3.

Open vikashcora opened this issue 3 years ago • 3 comments

Installed library from the master branch and getting this error every time while building

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find me.relex:photodraweeview:1.1.3.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/me/relex/photodraweeview/1.1.3/photodraweeview-1.1.3.pom
       - file:/Users/apple/.m2/repository/me/relex/photodraweeview/1.1.3/photodraweeview-1.1.3.pom
       - file:/Users/apple/Documents/MyApp/node_modules/react-native/android/me/relex/photodraweeview/1.1.3/photodraweeview-1.1.3.pom
       - file:/Users/apple/Documents/MyApp/node_modules/jsc-android/dist/me/relex/photodraweeview/1.1.3/photodraweeview-1.1.3.pom
       - https://dl.google.com/dl/android/maven2/me/relex/photodraweeview/1.1.3/photodraweeview-1.1.3.pom
       - https://www.jitpack.io/me/relex/photodraweeview/1.1.3/photodraweeview-1.1.3.pom
     Required by:
         project :app > project :react-native-photo-view

React-Native-Version : 0.66.1

vikashcora avatar Jan 29 '22 13:01 vikashcora

Same here after trying to upgrade to React Native 0.65.2

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find me.relex:photodraweeview:1.0.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/me/relex/photodraweeview/1.0.0/photodraweeview-1.0.0.pom
       - file:/Users/jarihan/.m2/repository/me/relex/photodraweeview/1.0.0/photodraweeview-1.0.0.pom
       - file:/Users/jarihan/Desktop/trex/trex-mobiili/node_modules/react-native/android/me/relex/photodraweeview/1.0.0/photodraweeview-1.0.0.pom
       - file:/Users/jarihan/Desktop/trex/trex-mobiili/node_modules/jsc-android/dist/me/relex/photodraweeview/1.0.0/photodraweeview-1.0.0.pom
       - https://dl.google.com/dl/android/maven2/me/relex/photodraweeview/1.0.0/photodraweeview-1.0.0.pom
       - https://www.jitpack.io/me/relex/photodraweeview/1.0.0/photodraweeview-1.0.0.pom
     Required by:
         project :app > project :react-native-photo-view
   > Could not find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
       - file:/Users/jarihan/.m2/repository/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
       - file:/Users/jarihan/Desktop/trex/trex-mobiili/node_modules/react-native/android/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
       - file:/Users/jarihan/Desktop/trex/trex-mobiili/node_modules/jsc-android/dist/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
       - https://dl.google.com/dl/android/maven2/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
       - https://www.jitpack.io/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
     Required by:
         project :app > project :react-native-mapbox-gl_maps > com.mapbox.mapboxsdk:mapbox-android-sdk:9.1.0

Jarzka avatar Apr 11 '22 12:04 Jarzka

for temporary solution , maybe can consider add this at build.gradle root level :

configurations.all {
    resolutionStrategy {
        // workaround : android build error 'Could not find me.relex:photodraweeview:1.1.3.' for 'react-native-photo-view'
        // see also https://github.com/alwx/react-native-photo-view/pull/210/files
        force 'me.relex:photodraweeview:2.1.0'
    }
}

JackNgWeiMing avatar Jun 17 '22 01:06 JackNgWeiMing

for temporary solution , maybe can consider add this at build.gradle root level :

configurations.all {
    resolutionStrategy {
        // workaround : android build error 'Could not find me.relex:photodraweeview:1.1.3.' for 'react-native-photo-view'
        // see also https://github.com/alwx/react-native-photo-view/pull/210/files
        force 'me.relex:photodraweeview:2.1.0'
    }
}

Thank you so much!!

sungsong88 avatar Feb 21 '23 17:02 sungsong88