Android Studio error involving Markdown editor - android-studio

I just installed a support package for Android Studio. Now it won't sync an Android project because of an error involving a Markdown package:
2016-11-15 06:24:07,147 [ 2770] ERROR - #com.intellij.lang.Language - Language with ID 'Markdown' is already registered: class com.vladsch.idea.multimarkdown.MarkdownLanguage
Is there any way to uninstall this package or tell Android Studio to ignore it?

Seems this is caused by Markdown Plugin (website), maybe by this issue, so you can either check if there's no newer version available or simply uninstall it unless the issue is fixed. If the issue above is not really the same, fill new bug report there's so author can take a look.

Related

Android Studio ArticFox compiling fine but showing red errors everywhere

I have a multi module Android Compose project. One module is an android app, others are android libraries or kotlin libraries. I'm running AS Artic Fox 2020.3.1 Beta 5 on MacOS 11.4 Big Sur.
After a library upgrade (probably AGP to use compose, I don't remember when exactly) Android Studio started to show syntax errors everywhere, both in .kts and .kt files.
Compilation and execution are working fine, only those weird JDK errors are displayed.
Here are some examples :
in a .kt file from a kotlin library module, in a .kts file from the buildSrc module
It seems that there is an error with the JDK somewhere, but I don't understand how to fix it.
I Googled/StackOverflowed before posting here and I already tried :
to check the JDK used Project Structure > SDK Location > Gradle. It is using the Embedded JDK 11.0.10
to reinstall AS using Jetbrains Toolbox
to invalidate cache and restart
to clone my project again
to delete ~/.gradle
But none of those actions helped...
Thanks in advance !
Update 22/07
I tried to create a new empty Compose project with .kts support, but no luck, everything is in red
Because of a bug preventing to update, I updated manually to RC_1. Here is my current setup.
I tried to change from Embedded JDK to a separately installed OpenJDK 11 and reimport but not luck (#alexey-belkov suggestion)
I checked the logs but found nothing obvious (#andy suggestion)
ℹ️ Finally I tried to create a new empty Android project with only .gradle support, and no errors ! Could it be a kotlin script plugin problem ?

Some conflicts were found in the installation area.(Android Studio)

I'm currently using Android Studio 4.0.1 and I've been trying to update it to the latest version that was recently released(4.0.2) but each time I click the update button, it displays the below error:
"Some conflicts were found in the installation area."
"Some of the conflicts below do not have a solution, so the patch cannot be applied."
"Press 'Cancel' to exit."
I have searched all the similar related issues on this site, some had similar issues with me but it didn't solve the error because the missing file it indicated has something to do with plugins and most people's own were different
A Screenshot of it:
I would like to know if there's anywhere I can get all the required latest plugins for Android studio because I previously uninstalled Android Studio, so maybe I wiped out the plugin files in the process. My current Android Gradle Plugin version is 4.0.1, then the Gradle version is 6.1.1.
Any Help will be appreciated
The folder where the studio is trying to install to may be the issue, You can always try to uninstall Android Studio and then install the version you wish to install.

Missing generated folders in Android Studio

I'm using Android Annotations in my project and I followed the instructions in this blog post http://www.jayway.com/2014/02/21/androidannotations-setup-in-android-studio/
Everything worked fine.
Today I updated Android Studio to latest version (build of 5th june). This requires an update of gradle build tools from 19.0.3 to 19.1.0. And i configured this in my build.gradle.
Annotaion processing still works. The generated files are located in build/source/apt. But this folder isn't visible any more in project explorer. And starting the build complains about the configuration.
But the project seems to run correctly.
This behavior is very annoying. Do I have to change anything in Android Studio? Has anyone a solution or is this just a bug in Android Studio?
The author of android-apt has already updated his plugin to support Gradle's new version, just change this line in your build.gradle
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2+'
To
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.3'
The Android Studio Team changed the behavior of the IDE "for better IDE integration". Therefore the output directory of the apt-plugin v 1.2 will not be recognized as generated sources folder any more.
the plugin author knows about it and will provide a fix
https://bitbucket.org/hvisser/android-apt/issue/13/compatibility-with-011-android-plugin

Android Studio: android-19 not found, but it's clearly installed

I've tried rebuilds, opening/closing android studio, switching to api level 18 and everything: I get this output:
Error:Module 'LabsCore': platform 'android-19' not found.
Error:Module 'facebook': platform 'android-19' not found.
In the sdk manager it is really all installed, I checked multiple times. Is this an issue with android studio/gradle plugin in the latest version?
I faced the same error after updrade to Android Studio 0.5.3/0.5.4. Take a look at this question. And the cholm's answer that was the solution for me.

Android studio preview 0.4.5: The project is using an unsupported version of the Android Gradle plug-in

I got the following error message when I was importing a project from github:
Failed to refresh Gradle project 'XXX'
The project is using an unsupported version of the Android Gradle plug-in.
Fix plug-in version and re-import project
This is not a duplicate of this because your get thee error message before
gradle/wrapper/gradle-wrapper.properties
is generated.
The problem appeared after updates. The updated Android Gradle plug-in did not support the outdated version of Gradle I had. But the error message is misleading, if you don't attempt different build options you won't see what the problem is.
After downloading a newer version of Gradle, Imported the project again, then:
Use local gradle distribution
Then Gradle home set to the folder where the new version of gradle was downloaded
that solved it
Edit: From Scott (below comments) : It's preferable to use the wrapper and to change the Gradle version in gradle-wrapper.properties instead of downloading and installing Gradle yourself. As for the Android-Gradle plugin, that's set in the dependencies.classpath block in your build file; see this
I get this gradle-errors in 4 Studio updates! My solution: I copy the Studio-folder, and if gralde throws an error, I copy the old version back. It's not a good way, but until google is not able to deliver an update without producing always the same errors (even if mentioned in many forums), I stay on 4.9 and wait for the first final release.

Resources