When trying to build our application, the below error is being thrown. Our package.json is pointed to the repo (v3), and this error did not occur yesterday when we did the same build.
problem occurred configuring project ':react-native-document-picker'.
Could not resolve all files for configuration ':react-native-document-picker:classpath'.
Could not find com.android.tools:common:25.3.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.pom
https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.jar
Required by:
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.build:manifest-merger:25.3.3
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.ddms:ddmlib:25.3.3
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:shared:25.3.3
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:tracker:25.3.3
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools.layoutlib:layoutlib-api:25.3.3
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:dvlib:25.3.3
project :react-native-document-picker > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:repository:25.3.3
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
Same here :\
@sgreco611 did you find any workaround?
I'm facing the same issue, it looks like a general problem see: https://github.com/react-native-community/react-native-image-picker/issues/1002
I hope there is a workaround to fix this
@sgreco611 did you find any workaround?
Unfortunately, not yet
@sgreco611 @oferRounds I found a workaround until the issue is addressed. Take a look: https://github.com/vgm8/react-native-document-picker/commit/7bdbb13ef60350c4a856cc931fa25b1dd8c48b58
EDIT
If you don't want to fork the library, just add this to the root build.gradle on your project:
```
subprojects {
project ->
if (project.name.contains('react-native-document-picker')) {
buildscript {
repositories {
maven { url "https://dl.bintray.com/android/android-tools/" }
}
}
}
}
i've created a PR solving this issue in v3 https://github.com/Elyx0/react-native-document-picker/pull/173. Hope it works for you all
i've created a PR solving this issue in v3 #173. Hope it works for you all
The Fix in the PR worked for me. Thank you all for the assistance. Looking forward to the merge.
It seems like it's Google-related issue : https://issuetracker.google.com/issues/120759347
Merged
Awesome thank you all!
Hi there , how can I update!
I did this but still not working
npm i --save react-native-document-picker@github:Elyx0/react-native-document-picker#v3
@yasir-netlinks that looks right to me. Not sure about the syntax though. What i have looks more like this:
"react-native-document-picker": "git://github.com/instructure/react-native-document-picker.git#v3",
If it doesn't work make sure that you delete node_modules, reinstall npm dependencies, restart the node server and recompile android.
closing as the PR with the fix was merged, please open a new issue if the problem persists
Most helpful comment
i've created a PR solving this issue in v3 https://github.com/Elyx0/react-native-document-picker/pull/173. Hope it works for you all