android studio gradle sync error - android

After trying a preview version that gave me odd errors, i just did a fresh install of Android Studio 1.1.0 on Ubuntu Linux.
I also removed the preferences directory to start from scratch.
Now even with new projects gradle sync fails with this error and i cannot find the cause or other informations that can give me hints about the cause:
Error:Cause: org.jetbrains.plugins.gradle.tooling.ModelBuilderService: Provider org.jetbrains.plugins.gradle.tooling.builder.ExternalProjectBuilderImpl not found
Does anybody knows how to fix this?

Solved by deleting the $HOME/.gradle folder.
I guess executing the preview version messed up something there.

I had to delete the .AndroidStudioPreview, .gradle/ and the .android. Basically it's like to uninstall android studio, but it worked for me.

Related

No builders are available to build a model of type 'org.jetbrains.plugins.gradle.model.internal.DummyModel'

After upgrading Android Studio to 4.0 version and in "gradle-wrapper.properties" :
distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip
I am getting the following error in Android Studio while syncing:
No builders are available to build a model of type 'org.jetbrains.plugins.gradle.model.internal.DummyModel'.
and unable to create or run the app build.
This can be one solution. I tried Copy and Cut everything in the setting.gradle file located in the project directory then SYNC project after Gradle is complete. Later paste the content back to the file and SYNC again. This not worked for me but for others, it worked.
Another solution is to downgrade the android studio to v 3.6.3 download by clicking here. You can follow these steps to downgrade the android studio. This solution worked for me and now I can build and run the application successfully.
I solved it by navigating to the Project settings in the settings.gradle file and COPY and CUT everything then SYNC the project after gradle is complete PASTE back the content you had copied and SYNC again.
This worked for me
Still not worked
Please use different gradle version.
ie case gradle-wrapper.properties. Instead of your version
distributionUrl=https://services.gradle.org/distributions/gradle-*.*.*-all.zip
update with
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
Thanks
I tried all the solutions above but I didn't succeed so I uninstall android studio and then installed it again and saw all the problems solved and I have no problem . so I recommend you reinstall the program as a last step .
REINSTALL

Android Studio shows continuous error with plugins and androidAnnotations.jar

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.

Unknown attribute for known attributes in xml files

I recently installed Android Studio on my Desktop running Ubuntu 17.10. However, when I open any Android Studio Project or even create a new Project, while editing XML files, it wrongly displays an "unknown attribute" error. Normally, I wouldn't care, but this causes Android Studio to not give any suggestions for attributes which I need.
What I've tried:
Invalidating cache
Deleting the .iml file and rebuilding project
Rebuilding and cleaning project several times
Deleting gradle's cache
Updating Android Studio (Current Release is Android Studio 3.1)
Here is a screenshot of what's happening
Try doing a gradle sync. It should resolve the problem
I´ve tryed all the solutions but the only thing that worked for me was 4gus71n's answer.
Deleting the C:\Users.AndroidStudio3.2\system\caches folder solved my problem.
Link to his answer: https://stackoverflow.com/a/53160674/6568421
Use project's SDK not Android's SDK. You can edit SDK Location in local.properties file
I had faced similar issues and all the above also did not worked for me.
If all else failed, do a clean install of android studio. You need to do a clean installation because if you just uninstall and install again, some of the files still remains in your system. It did not work for me when i just uninstall and install android studio. The clean install worked for me and I believe it should solve most of the problems.
I faced this error probably because i installed an entire android project but I am not very sure what is the exact error that caused this problem.
For clean installation, you can look at this links for windows and mac
How to completely uninstall Android Studio from windows(v10)?
How to completely uninstall Android Studio on Mac?

How to resolve Android Studio cannot find JAR 'core-3.1.1.jar' required by module 'gradle-jetty?

I opened up Android Studio today and for the first time I saw this error:
Error:Cannot find JAR 'core-3.1.1.jar' required by module 'gradle-jetty' using classpath or distribution directory '/Applications/Android Studio.app/Contents/gradle/gradle-2.14.1'
I have tried, restarted both my Mac and Android Studio but yet I still get this error. Can anyone help me?
I had the same problem, follow the answered detailed here to uninstall, and then just re-install. Before importing any existing projects just create a dummy project to ensure that everything finishes installing correctly.
Then simply just tell your antivirus that the project folder for android studio is excluded from the virus searches.
It turns out my antivirus had removed the file.
An uninstall and fresh install of Android Studio was able to solve my problem.
I have the same problem. Yeah, my Antivirus deleted the file too but it's seem uninstall and re-install Android Studio didn't work for me.
After re-install Android Studio, I can work normal with 1 project but when i try to open other project even create a new one, the 'core-3.1.1 jar' error show up again.
Just remove ./gradle folder compeletely.
Let Android Studio install Gradle from new or do it yourself.

Crashlytics plugin not appear Intellij IDEA 14 ( NullPointerException: update failed for AnAction with ID=Actions.Crashlytics.CrashlyticsAction)

Trying to add plugin into Intellij IDEA 14 but it's not appeared in tools panel(Plugin was downloaded from Crashlytics-site today). I tried to add hot-key for this then in logs got:
NullPointerException: update failed for AnAction with ID=Actions.Crashlytics.CrashlyticsAction
Any ideas how to fix this problem?
The problem was in IntelliJ IDEA EAP builds come with the YourKit Java Profiler. This answer helped me to return back crashlytics plugin to work.
If you can't solve this issue, I found a way that worked (Android Studio 1.1 on OSX).
Uninstall AS.
Delete the following (~ is home directory of user who runs AS):
~/.android*
~/.Android*
~/Library/Preferences/AndroidStudio*
~/Library/Preferences/com.google.android*
~/Library/Caches/Android*
~/Library/Android*
~/Library/Caches/com.crashlytics*
~/Library/Application Support/AndroidStudio*
~/Library//Saved Application State/com.google.android.studio.savedState
Then re-install Android Studio and the Fabric plugin, and it should work now.
I don't know if all the above deletes are necessary, but I could not narrow it down any further, and deleting all the above after uninstalling, then re-installing, worked for me.
Report a bug, let developers to fix it.
I didn't clear the cache or removed the Android Studio, I've reinstalled Crashlytics plugin again (File -> Settings -> Plugins -> Install plugin from disk...) and the issue disappeared.

Categories

Resources