react-native-file-selector icon indicating copy to clipboard operation
react-native-file-selector copied to clipboard

Could not find com.nbsp:library:1.8.

Open MichealZhu opened this issue 7 years ago • 21 comments

I'm getting this error when I try to sync the project.

Error:Failed to resolve: com.nbsp:library:1.8

MichealZhu avatar Oct 12 '18 10:10 MichealZhu

@MichealZhu I also got that error. I did this coment. I hope that helps you.

tomasNajun avatar Oct 13 '18 21:10 tomasNajun

Thanks @tomasNajun for sharing the solution and it's reference.

Thanks </ Pranav >

prscX avatar Oct 14 '18 08:10 prscX

According to the solution, the problem remains

image

yuhang1995 avatar Jul 22 '19 06:07 yuhang1995

Any other solution ?

LeaveNhA avatar Jul 23 '19 12:07 LeaveNhA

Hi, Do you resolved it ?😭

shen-lan avatar Jul 29 '19 08:07 shen-lan

@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 avatar Jul 29 '19 15:07 prscX

@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

shen-lan avatar Jul 30 '19 03:07 shen-lan

but the path /C:/Users/xxx/.m2/ is not exist

shen-lan avatar Jul 30 '19 03:07 shen-lan

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" }
        ...
    }
}

hdnvd avatar Jul 30 '19 20:07 hdnvd

@shen-lan:请将以下代码段添加到您的gradle: maven {url“ http://dl.bintray.com/lukaville/maven ”}

有关安装步骤,请参阅自述文件。

谢谢 </ Pranav>

After adding, the call simply flashes back

yuhang1995 avatar Aug 02 '19 06:08 yuhang1995

Just replace compile with implementation in node_modules/react-native-file-selector/android/build.gradle when your APP's gradle is 3.+

flyskywhy avatar Aug 06 '19 06:08 flyskywhy

use https instead of Http for 'http://dl.bintray.com/lukaville/maven' in your build.gradle directory

obie3 avatar Mar 21 '20 09:03 obie3

it is updated to 1.9.x: so use implementation 'com.nbsp:materialfilepicker:1.9.1'

rizwanswati avatar May 16 '20 11:05 rizwanswati

My version, RN: 0.58.3 react-native-file-selector: 0.0.6

  1. 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" } } }

  2. Add implement implementation 'com.android.support:design:27.1.1'

  3. 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')

  4. Remove build folder and run again

smallsquareface avatar Feb 01 '21 06:02 smallsquareface

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

idoor88 avatar May 10 '21 03:05 idoor88

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?

idoor88 avatar May 10 '21 14:05 idoor88

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

abhimangalms avatar May 13 '21 06:05 abhimangalms

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

leedachui123 avatar May 17 '21 15:05 leedachui123

ganti implementation 'com.nbsp:library:1.8' menjadi implementation 'com.nbsp:materialfilepicker:1.9'

misbachulmunir avatar Jun 30 '21 02:06 misbachulmunir

I have changed to https://github.com/LewinJun/react-native-system-file-browser which is more easy to build.

flyskywhy avatar Mar 03 '22 01:03 flyskywhy