-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android build issue -> Could not find com.android.volley:volley:1.1.1 #301
Comments
Where exactly did you paste it in this file? |
@kdrakcay After you run npm install or yarn install for your project. You'll add it to: .../node_modules/react-native-google-places/android/build.gradle As a side note. You will need to do this every time you delete the node_modules folder from your project. If you want to automate adding this to that gradle file instead of having to do it every time you can use an npm package called patch-package (https://www.npmjs.com/package/patch-package). |
Hello ,
in node_modules\react-native-google-places\android build.gradle file
Thanks |
Did anyone find a solution to this? This exclude group solution didn't work for me. It started giving more errors. |
@Yigityakut what errors do you receive? |
@fcaldarelli Here is the error I get
Also here is my build.gradle
|
I'm completely stuck with this for the last 2 days and I feel like I tried everything. At this point, looking for alternative libraries even though I'm short on time. If you have a fix to this, I'd appreciate it a lot. |
What React Native Google Places version are you using? |
3.1.2
|
try npx jetify that's it |
Try this |
What is the solution for this? |
This is the above error message I got when trying to build my react-native app for android. It appears to be trying to retrieve this package for the com.google.android.libraries.places:places:1.1.0 dependency listed in react-native-google-places version 3.1.2's android app/build.gradle file.
I think this was an error due to an outage with jcenter repos from what I can tell. Upon doing some research I was able to find out that com.google.android.libraries.places:places:1.2.0 is available on a stable maven repo and is backwards compatible with com.google.android.libraries.places:places:1.1.0.
To get my app building again I just added this to react-native-google-places android/build.grade file inside of node_modules:
The text was updated successfully, but these errors were encountered: