Giter Club home page Giter Club logo

Comments (11)

Thomas101 avatar Thomas101 commented on May 20, 2024 1

@Pocket-titan, as before not related to this lib, similar issue with another, but might help....

Mine was also looking on my local machine for the libs... e.g. in
file:/Users/tom/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/23.1/appcompat-v7-23.1.pom

How have you set your local android path for react native? If you've used the bash variable so far, try creating the $project_dir/android/local.properties and adding you path into there...

sdk.dir=/Users/tom/Library/Android/sdk/

from react-native-dialogs.

kkgelu avatar kkgelu commented on May 20, 2024

Same here.... on RN0.21

from react-native-dialogs.

lsps9150414 avatar lsps9150414 commented on May 20, 2024

same on RN0.21

from react-native-dialogs.

aakashns avatar aakashns commented on May 20, 2024

Hey guys, sorry about the issue. I'm on vacation right now, so can't look into it properly. I might be able to try and fix it next week.
Can you try older versions of the library and see if it works?

from react-native-dialogs.

Thomas101 avatar Thomas101 commented on May 20, 2024

I don't know if this will help anyone, but I had a similar issue with another library. I'm pretty sure it was the same error. It's because you don't have the latest google play api installed on your machine. Here's what I did to resolve it...

1.) Open android studio
2.) Go configure > SDK Manager
3.) Open SDK tools tab
4.) Ensure you have version 24.4.1 of Android SDK Tools installed so that it looks like below...
unnamed

Hope it helps someone!

from react-native-dialogs.

Pocket-titan avatar Pocket-titan commented on May 20, 2024

I tried all older versions, none worked. The logs all look the same:

A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find com.android.support:appcompat-v7:23.1.
     Searched in the following locations:
         https://jitpack.io/com/android/support/appcompat-v7/23.1/appcompat-v7-23.1.pom
         https://jitpack.io/com/android/support/appcompat-v7/23.1/appcompat-v7-23.1.jar
         file:/android/extras/android/m2repository/com/android/support/appcompat-v7/23.1/appcompat-v7-23.1.pom
         file:/android/extras/android/m2repository/com/android/support/appcompat-v7/23.1/appcompat-v7-23.1.jar
         file:/android/extras/google/m2repository/com/android/support/appcompat-v7/23.1/appcompat-v7-23.1.pom
         file:/android/extras/google/m2repository/com/android/support/appcompat-v7/23.1/appcompat-v7-23.1.jar
     Required by:
         com.github.aakashns:android:c9fa094d8a
   > Could not find any version that matches com.facebook.react:react-native:0.14.+.
     Searched in the following locations:
         https://jitpack.io/com/facebook/react/react-native/maven-metadata.xml
         https://jitpack.io/com/facebook/react/react-native/
         file:/android/extras/android/m2repository/com/facebook/react/react-native/maven-metadata.xml
         file:/android/extras/android/m2repository/com/facebook/react/react-native/
         file:/android/extras/google/m2repository/com/facebook/react/react-native/maven-metadata.xml
         file:/android/extras/google/m2repository/com/facebook/react/react-native/
     Required by:
         com.github.aakashns:android:c9fa094d8a
   > Could not find com.github.afollestad.material-dialogs:core:0.8.5.0.
     Searched in the following locations:
         https://jitpack.io/com/github/afollestad/material-dialogs/core/0.8.5.0/core-0.8.5.0.pom
         https://jitpack.io/com/github/afollestad/material-dialogs/core/0.8.5.0/core-0.8.5.0.aar
         file:/android/extras/android/m2repository/com/github/afollestad/material-dialogs/core/0.8.5.0/core-0.8.5.0.pom
         file:/android/extras/android/m2repository/com/github/afollestad/material-dialogs/core/0.8.5.0/core-0.8.5.0.aar
         file:/android/extras/google/m2repository/com/github/afollestad/material-dialogs/core/0.8.5.0/core-0.8.5.0.pom
         file:/android/extras/google/m2repository/com/github/afollestad/material-dialogs/core/0.8.5.0/core-0.8.5.0.aar
     Required by:
         com.github.aakashns:android:c9fa094d8a

When I visit the Jitpack urls it's trying to search, I get a blank screen and the console logs a 404 error.
Could this be a problem on Jitpacks end?

from react-native-dialogs.

texas697 avatar texas697 commented on May 20, 2024

same issue. really want to use this!

from react-native-dialogs.

Pocket-titan avatar Pocket-titan commented on May 20, 2024

I've fixed the dependency issue I believe, but now my app is crashing - presumably because I'm using the newest material-dialogs,0.8.5.7 instead of 0.8.5.0 like I believe this app uses.

I did three things. First, I followed the advice @Thomas101 gave (thanks by the way!) and set my local android path to sdk.dir=/Users/MYUSER/Library/Android/sdk/.

Then, I saw in android/app/build.gradle that it was searching for appcompat-v7:23.1, but there doesn't appear to be a version 23.1, only a version 23.0.1. So I changed the appcompat version from 23.1 to 23.0.1, and it no longer gave any errors with appcompat.

BUT, it still couldn't find the material-dialogs/core stuff. I saw that it was searching for version 0.8.5.0, while on Jitpack I could only find 0.8.5.3 up until 0.8.5.7. So, I changed the material-dialogs version to 0.8.5.7 and the dependencies resolved just fine.
But it's not working because I don't think this library is using the newest version of material-dialogs yet.

So it looks like Jitpack only hosts the latest 5 versions? I could request all of the versions listed there, but not version 0.8.5.0. If so, then updating to [email protected] should fix it.

from react-native-dialogs.

Pocket-titan avatar Pocket-titan commented on May 20, 2024

@aakashns The open pull request fixes this, you might want to take a look at it

from react-native-dialogs.

aakashns avatar aakashns commented on May 20, 2024

@Pocket-titan Thanks for pointing this out. I have merged the pull request and tested it on my end, and it seems to be woking fine with react-native 0.22.

I just published version 0.0.14 of react-native-dialogs with this change incorporated.

from react-native-dialogs.

vonovak avatar vonovak commented on May 20, 2024

closing since the issue seems to be fixed.

from react-native-dialogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.