Problem Android Studio - failed to resolve com.android.support appcompat-v7 29 [duplicate] - android

This question already has answers here:
Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
(6 answers)
Closed 3 years ago.
I'm trying to start a course with Android Studio 2.2.1, but when I create a new project I come upon the error message:
failed to resolve com.android.support appcompat-v7 29
Also my Mainactivity.java gives me the error:
Method does not override method from superclass.
I've tried to add the Maven URL, but with no luck.
When I try to rebuild the project I get:
Error:A problem occurred configuring project ':app'. Could not resolve
all dependencies for configuration ':app:_debugApkCopy'. Could not
find any version that matches com.android.support:appcompat-v7:29.+.
Versions that do not match:
26.0.0-alpha1
25.3.1
25.3.0
25.2.0
25.1.1
+ 31 more Required by: DemoAppTwo:app:unspecified
Does anybody know a solution for this, so that I can start learning to code in android please?
Thanks in advance!
Kind regards,
KevinDP

That is not a version of the support library that exists - the last version was 28 (and it has since been replaced).
You should download the latest version of Android Studio (currently 3.5.3) from the Android Developers website and start again with that. It will create the new project for you with the correct dependencies.

Related

Gradle build failed with an error without printing this error [duplicate]

This question already has answers here:
How to fix Unsupported class file major version 57 in maven for Java 13 and Spring
(4 answers)
Closed 2 years ago.
This is my first Android project on Kotlin. I created a project and it builds successfully, don't know but after all, when I try to run the project on my device it says build failed without giving any error:
Gradle build failed with 1 error(s) in 352 ms
First I thought it may be an error of the JDK I use, but after changing the JDK version, again it gives the same error, I am stuck please help.
You need to build that onvifcamera from source, as the JAR seems to be built with Java 13.
implementation "com.rvirin.onvif:onvifcamera:1.1.6"
Should be:
implementation project(":onvifcamera")
Older pre-packaged versions of the library might also work on Android.

Android Studio is unable to resolve dependency for :app#debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:29.+ [duplicate]

This question already has answers here:
Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
(6 answers)
Closed 3 years ago.
I installed android studio and sdk successfully. but when I created a new project and android studio downloaded gradle files for the project and gives me these errors:
Error: Unable to resolve dependency for ':app#debug/compileClasspath':
Could not resolve com.android.support:appcompat-v7:29.+.
Error: Unable to resolve dependency for
':app#debugAndroidTest/compileClasspath': Could not find any version
that matches com.android.support:appcompat-v7:29.+. Show Details
Affected Modules: app
Error: Unable to resolve dependency for
':app#debugUnitTest/compileClasspath': Could not find any version that
matches com.android.support:appcompat-v7:29.+. Show Details Affected
Modules: app
I have sync and installed gradle many times, but still have the same problem.
Can you please share your build.gradle file ? Although I am not sure but it may works
Solution 1: Go to "File".
Click on Invalidate Cache/ Restart.
Again click on Invalidate Cache / Restart
Solution 2: Change
apply plugin: 'com.android.application'
to
apply plugin: 'com.android.library'
Kindly update your android studio.
the latest android studio version is 3.5.0
please check your build.gralde. Have it add the google() in repositories?

How do I fix this error in Android Studio if I have already added the Google Maven repository? [duplicate]

This question already has answers here:
Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
(6 answers)
Closed 3 years ago.
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.+
Install Repository and sync project<br>Show in File<br>Show in Project Structure dialog
I expect gradle to build successfully but it does not do that. Instead it fails!
It happens because com.android.support:appcompat-v7:29.x.x doesn't exist.
You can check the revision history.
Also:
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.

Android Studio - "aidl is missing"... no, it's not [duplicate]

This question already has answers here:
Execution failed for task ':app:compileDebugAidl': aidl is missing
(14 answers)
Closed 7 years ago.
I followed this guide to try and fix this error...
"Error:Execution failed for task ':app:compileDebugAidl'.
aidl is missing"
I put "IInAppBillingService.aidl" in "app/src/main/aidl/com.android.vending.billing" and when I rebuild the project, the error is still there. I've restarted Android Studio multiple times... it just won't fix, I've followed the guide to the letter, it's worked for everyone else...
Could anyone help please?
For anybody getting this error, see the suggestion provided in the comments above by CommonsWare. Downgrade your SDK Build Tools to 22.0.1, it's 23.0.0_rc1 by default.
Changing the Build Tools Version from 23.0.0 rc1 to 22.0.1 in the Project Structure, then Clean and Rebuild worked for me.
If you changed the build tools and the problem wasn't fixed, try cleaning and rebuilding, and maybe closing Android Studio and reopening it.
To build your application without aidl is missing error with compileSdkVersion 23 and buildToolsVersion "23.0.1" you should specify latest versions for Android and Google Play Services (only if you are using them) Gradle plugins in main build.gradle file:
buildscript {
repositories {
...
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.google.gms:google-services:1.3.1'
}
}

Android Studio, Gradle Update error [duplicate]

This question already has answers here:
Android-Studio upgraded from 0.1.9 to 0.2.0 causing gradle build errors now
(7 answers)
Closed 9 years ago.
I recently updated Android Studio to version 0.2, and now when I build my code, I get this error, Please tell me how to overcome this.
Gradle 'NewProject' project refresh failed:
Project is using an old version of the Android Gradle plug-in. The
minimum supported version is 0.5.0. Please update the version of
the dependency 'com.android.tools.build:gradle' in your build.gradle
files. Search in build.gradle files (show balloon)
Its a reported issue in Android Studio Build #AI-130.737825, built on July 11, 2013. Luckily, there is a workaround that you can do to fix this import issue.
Externally edit the project's build.gradle file, changing 'com.android.tools.build:gradle:0.4.2' to 'com.android.tools.build:gradle:0.5.+'
Here is the link to the issue
Go to your
build.gradle
file and replace the string
'com.android.tools.build:gradle: (what you have here)'
with
'com.android.tools.build:gradle:0.5'

Categories

Resources