After upgrade Android Studio to 1.2.1.1 Or later , The IDE can't open library dependency dialog (Maven dependency)
it gives this error :
Could not initialize class com.android.tools.idea.structure.gradle.MavenDependencyLookupDialog
is it a bug ,, or some thing Wrong ??
I Found it Finally , in new versions of android studio
you should activate the Maven box from :
new SDK Manager >> Plugins >> Maven Integration >> check this box
I used #Maher Answer and tried to show graphically
Step 1: In android studio Open Tools > Android > Sdk Manager
Step 2: Now click or Plugin > Maven Integration and mark checked
Related
Gradle version 3.4.1
Gradle wrapper gradle-5.1.1-all.zip
Android Studio 3.4.1
After I add this section to my app.gradle:
dataBinding {
enabled = true
}
my project is giving an error when building. The error is:
Could not find databinding-compiler.jar (androidx.databinding:databinding-compiler:3.4.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-compiler/3.4.1/databinding-compiler-3.4.1.jar
app.gradle p1
app.gradle p2
app.gradle p4
project.gradle
gradle.properties
gradle-wrapper.properties
error
Go to
Tools -> SDK Manager -> SDK Tools -> Then check the Support Repository and hit Ok
The Support repository will be downloaded. Then try syncing the project.
i was have this problem and as Santanu said (thanks for help) i go to Tools -> SDK Manager -> SDK Tools
but there wasn`t Support Repository exists
but Android Emulator and Android SDK Platform-Tools and Documentation for Android SDK was need update so i just click check box and alert showing 'need update'
so i click update and they was updated and Then try syncing the project and error gone and problem was fixed
I created a new android application project in android studio. Running the project in Android Studio fails with this error:
*A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any matches for com.android.support:appcompat-v7:19.+ as no
versions of com.android.support:appcompat-v7 are available.*
How can I fix this error?
From Android Studio go to: Tools > Android > SDK Manager
Select and install "Extras > Android Support Repository"
Step1) Go to project structure setting in Android Studio
step2) On left side select you project and then goto dependencies (can be found on the top portion)
step3) Remove current appcompact-v7 and click Add button and select appcompact-v7.23.0.0 and clean your project .it will solve
I'm using Android Studio 1.0.2.
Due to some reason i have to uninstall the Crashlytics plugin/SDK from my Android studio.
I have tried going to File>Settings>Plugins to remove Crashlytics, but this has not helped me, as i cannot find it in the plugin list.
Request if someone can provide a solution for this issue.
You need to delete crashlytics in app/build.gradle.
buildscript {
repositories {
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}
compile 'com.crashlytics.android:crashlytics:1.+'
Delete line that show crashlytics in repositories and dependencies.
Delete file app/crashlytics.properties and app/main/assets/crashlytics-build.properties
Then build gradle again.
For plugins installed inside the Studio just go to File-Settings-Plugins and uninstall
You can go to the Preferences->Plugins on the search bar, you can search the plugin you want to remove or you can go >installed plugin tab and it will show you the list of installed plugin then select the plugin to remove just right click on it and it will show you the option>uninstall and then press on the Uninstall button.
File > Setting > plugins > installed plugins > right click on plugin > uninstall
In case you cannot delete a Plugin from Preferences->Plugins because is not on the list, navigate to
{User-Home}\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\202.6787931.plugins
and simply delete its folder and restart Android Studio.
You may have to look up that path yourself, as mine is for a JetBrains Toolbox installation of Android Studio, but the process should be the same.
Hint: In my case the plugin in question lived in a folder named "plugin", what I had to figure out first.
For Mac User find plugin on below path.
/Users/username/Library/Application
Support/Google/AndroidStudio2021.3/Plugins
Bold text would be different depending on computer environment + Android Studio version
For the new Android Studio version (Android Studio Electric Eel | 2022.1.1).
To delete or uninstall the Plugin, the steps are below:
Settings -> Plugins -> Choose Tab Installed -> Select the Plugin you want -> Click Icon Setting (Right of Title) -> Uninstall
I just started using Android Studios and wanted to look at some of the sample code that Google already provides in their apk samples.
However, when I try importing a project, it tells me:
"You are using an old, unsupported version of Gradle. Please use version 1.8 or greater.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)
Consult IDE log for more details (Help | Show Log)"
In my .gradle/wrapper/dists, I have gradle-1.6-bin and gradle-1.8-bin.
I tried updating the gradle to 1.8 from 1.6 in the gradle-wrapper.properties file in the project itself, but I can't seem to save the file after editing it.
Step 1: Change line in build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
Step 2:
In the YourProject.iml file, delete the entire component name="FacetManager" tag.
Step 3
(Maybe not necessary): In the Android SDK manager, install (if not already installed) Android Support Repository under Extras.
Refer to these 2 links. It answers your question.
getting error when importing project in android studio?
Unable to import Eclipse project to Android Studio
Just now I updated my android studio from build 130.737825 to build 130.878379. When I create a project for the first time, I am getting following error.
Gradle: A problem occurred configuring project ':MyApplicationadfaldf'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':MyApplicationadfaldf:_DebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:+.
Required by:
MyApplicationadfaldfProject:MyApplicationadfaldf:unspecified
What is the reason?
For others, who may be facing the same problem,
Go to Tools-> Android-> SDK Manager, and update all repositories. Now, everything will work properly.
Same issue in my project was fixed with this:
In Android Studio:
-> Go to File menu -> Settings -> Gradle ->
Now in Gradle Settings just check Use Auto-Import Now update Maven will be updated in Android Studio and this error should be gone.
http://tools.android.com/knownissues#TOC-Bundled-Maven-Repository
you need to install "android support repository"