How Do I Fix This Error In Android Studio If I Have Already Added The Google Maven Repository?
I'm using Android Studio version 2.3.3 and Facing the Gradle Error. I have Added the Logcat
Error Below..
I've tried several the solution on Stack Overflow which says add the Google Maven repository, but the error already persists. I'm adding the code below too:
Already added Maven repository by Google. Still does NOT work.
Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:29.+
<a target="_blank" rel="nofollow noreferrer" href="install.m2.repo">Install Repository and sync project</a><br><a target="_blank" rel="nofollow noreferrer" href="openFile:C:/Users/Haris Usmani/AndroidStudioProjects/CabApp/app/build.gradle">Show in File</a><br><a target="_blank" rel="nofollow noreferrer" href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
I expect gradle
to build successfully but it does not do that. Instead it fails!
Answer
It happens because com.android.support:appcompat-v7:29.x.x
doesn't exist.
You can check the revision history.
Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.
You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android.support.*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.
We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.
Related Questions
- → should I choose reactjs+f7 or f7+vue.js?
- → Phonegap Android write to sd card
- → Local reference jquery script in nanohttpd (Android)
- → Click to navigate on mobile devices
- → How to allow api access to android or ios app only(laravel)?
- → Access the Camera and CameraRoll on Android using React Native?
- → React native change listening port
- → What is the default unit of style in React Native?
- → Google play market autocomplete icon
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → Using Laravel with Genymotion
- → react native using like web-based ajax function
- → react native pdf View