Comments (11)
@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.
Same here.... on RN0.21
from react-native-dialogs.
same on RN0.21
from react-native-dialogs.
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.
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...
Hope it helps someone!
from react-native-dialogs.
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.
same issue. really want to use this!
from react-native-dialogs.
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.
@aakashns The open pull request fixes this, you might want to take a look at it
from react-native-dialogs.
@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.
closing since the issue seems to be fixed.
from react-native-dialogs.
Related Issues (20)
- Is this repo still maintained? HOT 4
- Crash when using showPicker with RN 0.57.4 HOT 2
- DialogAndroid.prompt set OptionsCommon' content not working on Android HOT 2
- 1.0.3 HOT 3
- Android resource linking failed on RN 0.58 HOT 6
- Duplicate type OptionsCheckbox HOT 2
- TypeError: null is not an object (evaluating '_reactNative.NativeModules.DialogAndroid.show' HOT 9
- [Feature] Would be nice showPicker method supports icons like the native HOT 4
- [Bug, Android] The input of a prompt is hidden partially HOT 1
- Is this compatible with React Native 0.60? HOT 2
- prettier config is missing HOT 2
- Custom font for Dialog HOT 2
- Typescript definition
- show left positiveTex
- Content property does not accept external component
- Fails to build on react-native 0.73
- java.lang.IllegalArgumentException while dismissing the dialog box HOT 5
- Validation?, how? HOT 1
- Not building production with 0.57.1 HOT 9
- Turn off autocorrect on prompts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-dialogs.