proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.31k stars 223 forks source link

Unable to use jcenter #323

Closed BenjaminSAILcloud closed 2 years ago

BenjaminSAILcloud commented 2 years ago

Can this PR be accepted as quick as possible please ?

Jcenter is unaccessible at the moment and I can't build my app.

image

Stacktrace ``` Could not determine the dependencies of task ':app:processDebugResources'. > Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. > Could not resolve org.webkit:android-jsc:+. Required by: project :app > Failed to list versions for org.webkit:android-jsc. > Unable to load Maven meta-data from https://jcenter.bintray.com/org/webkit/android-jsc/maven-metadata.xml. > Could not HEAD 'https://jcenter.bintray.com/org/webkit/android-jsc/maven-metadata.xml'. > Read timed out > Could not resolve org.greenrobot:eventbus:3.+. Required by: project :app > project :react-native-inappbrowser-reborn > Skipped due to earlier error * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ```
willianlemes commented 2 years ago

I'm having this problem too

NicoMoli commented 2 years ago

I am having the problem now, It's very important that we could found a solution. Thanks

jdnichollsc commented 2 years ago

Please point to the develop branch of this repo in the meantime 👍

chrismerino commented 2 years ago

@jdnichollsc, I'm having the same issue on a little project... Could it be related to this thread? in-app-browser-build-error

chrismerino commented 2 years ago

@chrismerino try this, go to file android\build.gradle and changed the line implementation 'org.greenrobot:eventbus:3.+' to implementation 'org.greenrobot:eventbus:3.1.0'

also i suggest you to abandoned this library sadly the author has not time to keep it updated

Thank you @arcollector, this worked (edit: this worked locally but is not a good idea to work this way). Do you know any other similar library that is maintained? Ideally I would prefer to send a PR to this project but it seems there are a few still waiting for approval from author.

slxsh commented 2 years ago

@chrismerino try this, go to file android\build.gradle and changed the line implementation 'org.greenrobot:eventbus:3.+' to implementation 'org.greenrobot:eventbus:3.1.0' also i suggest you to abandoned this library sadly the author has not time to keep it updated

Thank you @arcollector, this worked (edit: this worked locally but is not a good idea to work this way). Do you know any other similar library that is maintained? Ideally I would prefer to send a PR to this project but it seems there are a few still waiting for approval from author.

Did you find any other library?

slxsh commented 2 years ago

@chrismerino try this, go to file android\build.gradle and changed the line implementation 'org.greenrobot:eventbus:3.+' to implementation 'org.greenrobot:eventbus:3.1.0'

also i suggest you to abandoned this library sadly the author has not time to keep it updated

My android\build.gradle doesn't have implementation 'org.greenrobot:eventbus:3.+' and adding it causes some error.

arcollector commented 2 years ago

@sixsh isn't your build.gradle, the file is located in node_modules/react-native-inappbrowser/android/build.gradle

@chrismerino sadly dont know any good library, before this one i used https://www.npmjs.com/package/react-native-inapp-browser but project died

chrismerino commented 2 years ago

@chrismerino try this, go to file android\build.gradle and changed the line implementation 'org.greenrobot:eventbus:3.+' to implementation 'org.greenrobot:eventbus:3.1.0' also i suggest you to abandoned this library sadly the author has not time to keep it updated

Thank you @arcollector, this worked (edit: this worked locally but is not a good idea to work this way). Do you know any other similar library that is maintained? Ideally I would prefer to send a PR to this project but it seems there are a few still waiting for approval from author.

Did you find any other library?

I haven't yet, although I noticed that Expo has expo-web-browser which apparently can be added to a React Native CLI project (which is my case). I haven't tested it yet but probably will because I'd like to keep using the in-app browser functionality.

Expo Web Browser https://docs.expo.dev/versions/v45.0.0/sdk/webbrowser/

jdnichollsc commented 2 years ago

Sorry for the delay folks, hope you're doing well

I was very busy because I am going to start working in another company and I was sick these days, I'm testing here right now to publish a new version ASAP!

Happy Friday! <3