I just updated to Android Studio 3.2 stable, but I get this error when I'm trying to sync my old projects or new ones with gradle:
Could not find databinding-compiler-common.jar
(androidx.databinding:databinding-compiler-common:3.2.0). Searched in
the following locations:
https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-compiler-common/3.2.0/databinding-compiler-common-3.2.0.jar
How can I fix this?
Update: I looked around for the dependency and it wasn't there to delete, I invalidated cache, I did a fresh reinstall and nothing worked so I went back to 3.1. This happens in windows but there's no problem in Linux with same projects.
no more need of this dependency like answered here
When Android Studio gives you errors after that, try to Rebuild or maybe use > File > Invalidate Cache & Restart.
It's working fine after I removed the following line for annotation processor from app's build.gradle following Android Studio 3.2 update: kapt "com.android.databinding:compiler:${dataBindingVersion}"
Updating to version 3.2.1 fixed the problem. It must have been a bug for some people!
I already had this problem with the Android Studio version 4
I reinstalled Android Studio, Then it was fixed :)
Related
I had Tried various ways to resolve the issue that are given by the people on the same questions been asked in past,but that is realted to the intellij idea
I had tried below ways ,but it didn't worked for me -_-
* deleted the .gradle file and then agained opened the project(in hope that android studio automatically would installed the needed version of the gradle)
changed the gradle version and have done trial and error but didn't worked.
My original version of the Gradle and Android PLugin version are has shown below in the picture.
My version of the android studio that I had installed is 3.0.1
Pls someone help
Thank You
Hey Guys ,I got the answer ,all and only we have to do is go to project structure in android studio and then go to project and then change your gradle version to 4.1 and android plugin version to 3.0.1
Click OK
And see the magic 😊
I don't know why, but Android Studio 3.2.1 display a plugin error continuosly. The error is always related to androidAnnotations.jar, like this:
Android Studio/plugins/android/lib/androidAnnotations.jar!/android/content/annotations.xml: Content is not allowed in prolog.
I've updated to latest version of IDE and SDK but the error hasn't been solved. I tried to invalidate caches, reload the project from repository and resync gradle, disable and enable plugins, etc., but without success.
Any suggestion?
After some test and searchs on internet I've found how to solve this issue. Deleting some cache folders from .android, AS recreates it and problems are gone. I followed the steps from the answer posted by #Levi Rizki Saputra.
I upgraded the studio to 3.1.2 version lately. After that facing few issues, one of which is this :
Even though all imports are written correctly, the files are said not to be found and I get the class names in red saying "Cannot resolve symbol".
But when I try to run the project it runs perfectly. I tried to invalidate cache and restart, clean project, rebuild project, also tried restarting the PC but no solution.
You have to update your Kotlin library version and check some other version of library it might be not compatible with new android studio version and also check gradle version.
Since last android studio (1.1.0) update I have one issue with Jsoup(1.8.1) Gradle and it compilation.
When I import jsoup.jar in the projects I receive a message that said
To fix this problem. I have tried:
-I try click on "Add now..." but dont fix the issue.
-Clean project.
-Rebuild project.
-Close and open Android Studio.
Nothing have worked.
Any ideas?
Thanks.
Update 1: I have updated to android-studio Beta(1.2) and now works fine. But i want use android-studio Stable version.
I had the exact same problem. On Mac OS X 10.10.3, upgading to version 1.2.2 of Android Studio solved this problem for me. I used option-return key press while hovering over the class name I wanted to reference and that caused Android Studio to add the appropriate import. Auto-completion seems to work as well in the IDE.
I can't seem to find the project files in to the newer version of Android Studio. In the screenshot below you can see that it doesn't display the entire project tree.
http://i.stack.imgur.com/ts172.png
The solution offered in this post doesn't fix my problem.
Press alt+1
this work on my android studio 0.3.5 on linux
It happened to me too, in this link it says something about upgrading:
Windows users: Do not install Android Studio 0.2.x in the same location as 0.1.x. Doing so may cause errors such as ClassCastException or other unexpected behaviors. It's best if you remove your previous version of Android Studio 0.1.x.
I fixed it uninstalling my currend Android Studio installation, removing the folder where it was installed with the remaining files, and installing it again. It works correctly now apparently.
I have had the same problem on Android Studio 1.2.2. I have closed and reopen project.