react-native-file-selector
react-native-file-selector copied to clipboard
Could not find com.nbsp:library:1.8.
I'm getting this error when I try to sync the project.
Error:Failed to resolve: com.nbsp:library:1.8
@MichealZhu I also got that error. I did this coment. I hope that helps you.
Thanks @tomasNajun for sharing the solution and it's reference.
Thanks </ Pranav >
According to the solution, the problem remains

Any other solution ?
Hi, Do you resolved it ?😭
@shen-lan: please add below snippet to your gradle: maven { url "http://dl.bintray.com/lukaville/maven" }
Please refer README for the installation steps.
Thanks </ Pranav >
@prscX Thank you. I have used it refer md, and referd others issue ,but it didint work. always the same error
Could not find com.nbsp:library:1.8.
Searched in the following locations:
- file:/C:/Users/xxx/.m2/repository/com/nbsp/library/1.8/library-1.8.pom
but the path /C:/Users/xxx/.m2/ is not exist
add this snippet to android/app/build.gradle :
repositories {
maven {
url "http://dl.bintray.com/lukaville/maven"
}
}
and then change android/build.gradle all projects part to be like this
allprojects {
repositories {
mavenLocal()
jcenter()
maven { url "https://maven.google.com" }
...
}
}
@shen-lan:请将以下代码段添加到您的gradle: maven {url“ http://dl.bintray.com/lukaville/maven ”}
有关安装步骤,请参阅自述文件。
谢谢 </ Pranav>
After adding, the call simply flashes back
Just replace compile with implementation in node_modules/react-native-file-selector/android/build.gradle when your APP's gradle is 3.+
use https instead of Http for 'http://dl.bintray.com/lukaville/maven' in your build.gradle directory
it is updated to 1.9.x: so use
implementation 'com.nbsp:materialfilepicker:1.9.1'
My version, RN: 0.58.3 react-native-file-selector: 0.0.6
-
change maven buildscript { ext { buildToolsVersion = "28.0.2" minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 27 supportLibVersion = "28.0.0" } repositories { maven { url "https://dl.bintray.com/lukaville/maven" } google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1'
// NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}
allprojects { repositories { mavenLocal() google() jcenter() maven { url "https://dl.bintray.com/lukaville/maven" } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } } }
-
Add implement implementation 'com.android.support:design:27.1.1'
-
change mistake in settings.gradle change \ to / include ':react-native-file-selector' project(':react-native-file-selector').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-file-selector/android')
-
Remove build folder and run again
I used up all the approaches above, but for some reason I got forbidden error:
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not resolve com.nbsp:library:1.8. Required by: project :app > project :react-native-file-selector > Could not resolve com.nbsp:library:1.8. > Could not get resource 'https://dl.bintray.com/lukaville/maven/com/nbsp/library/1.8/library-1.8.pom'. > Could not GET 'https://dl.bintray.com/lukaville/maven/com/nbsp/library/1.8/library-1.8.pom'. Received status code 403 from server: Forbidden
Thanks for the info, currently I got access denied with this url: https://dl.bintray.com/lukaville/maven/com/nbsp/library/1.8/library-1.8.pom
I changed my build.gradle file from jcenter to aliyun, but what is the replacement url for: maven { url "https://dl.bintray.com/lukaville/maven" } ? in other words, what is the url for library-1.8 on aliyun or mavenCentral?
add this snippet to android/app/build.gradle :
repositories { maven { url "http://dl.bintray.com/lukaville/maven" } }and then change android/build.gradle all projects part to be like this
allprojects { repositories { mavenLocal() jcenter() maven { url "https://maven.google.com" } ... } }
But https://dl.bintray.com/lukaville/maven is Forbidden now. Any fix for this ! any help is appreciated
this url seems totally dont work.💀
maven {
url "http://dl.bintray.com/lukaville/maven"
}
check this at the bottom. it works for me.✌ hope it will solve yours. 👉 https://github.com/nbsp-team/MaterialFilePicker/issues/3
ganti implementation 'com.nbsp:library:1.8' menjadi implementation 'com.nbsp:materialfilepicker:1.9'
I have changed to https://github.com/LewinJun/react-native-system-file-browser which is more easy to build.