alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
815 stars 434 forks source link

Failed build for Android #207

Closed fabiocomics closed 2 years ago

fabiocomics commented 2 years ago

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

Could not find me.relex:photodraweeview:1.0.0. Searched in the following locations:

ennbou commented 2 years ago

Try to change version number in this gradle file and rebuild your project.

Path : node_modules/react-native-photo-view/android/build.gradle

Old

implementation 'me.relex:photodraweeview:1.1.3'

New

implementation 'me.relex:photodraweeview:2.1.0'

You can get the last version of photodraweeview from this link.

Good Luck 👍 .

fabiocomics commented 2 years ago

Thanks! This solved my build problem.

bogas04 commented 2 years ago

@ennbou How would we solve this in production as it requires patching the dependency?

ennbou commented 2 years ago

Hello @bogas04, yes you have to update it and do rebuild, the easiest way is to use a branch from PRs who they haven't merged yet, you can use this :

// package.json
"react-native-photo-view": "https://github.com/thanhcuong1990/react-native-photo-view.git",