Ide fatal error android studio

Методы лечения различных ошибок в Android Studio при разработке проекта Сегодня хотел бы поделиться своим анализом и способами лечением разных ошибок при разработке своего продукта в Android Studio. Лично я, не раз сталкивался с различными проблемами и ошибками при компиляции и/или тестировании мобильного приложения. Данный процесс, всегда однообразный и в 99% случаев и всегда […]

Содержание

  1. Методы лечения различных ошибок в Android Studio при разработке проекта
  2. Reporting this fatal error at Android Studio #41658
  3. Comments
  4. Version information
  5. Exception
  6. Dart analysis issue
  7. Version information
  8. Details
  9. Debug log
  10. Ide fatal error android studio

Методы лечения различных ошибок в Android Studio при разработке проекта

Сегодня хотел бы поделиться своим анализом и способами лечением разных ошибок при разработке своего продукта в Android Studio. Лично я, не раз сталкивался с различными проблемами и ошибками при компиляции и/или тестировании мобильного приложения. Данный процесс, всегда однообразный и в 99% случаев и всегда нужно тратить n-колличество времени на его устранение. Даже, когда ты уже сталкивался с данной проблемой, ты все равно идешь в поисковик и вспоминаешь, как же решить ту или иную ситуацию.

Я для себя завел файлик, в котором отметил самые частые ошибки — потратив на это несколько часов и перечислил самые популярные ошибки (в дальнейшем планирую просто их запомнить), чтоб сократить свое время в дальнейшем.

Итак, начну по порядку с самой распространенной проблемы и дальше буду перечислять их по мере появления:

1) Если подчеркивает красным код, где используются ресурсы: R. — попробовать (но вероятно не поможет): Build -> Clean Project.

В принципе на Build -> Clean Project можно не терять времени, а лучше всего — слева переключиться на Project, открыть каталог .idea, затем каталог libraries и из него удалить все содержимое. Затем нажать кнопку Sync Project. А затем (если все еще красное, но скорее всего уже будет все ок ) Build -> Clean Project.

2) После внезапного выключения компьютера, после перезапуска может быть во всех проектах весь код красным. Перед этим может быть ошибка: Unable to create Debug Bridge: Unable to start adb server: Unable to obtain result of ‘adb version’. Есть три решения — первое помогло, второе нет (но может быть для другого случая), а третье — не пробовал:

а) File — Invalidate Caches/Restart — Invalidate and Restart

б) Закрыть студию. В корне папки проекта удалить файл(ы) .iml и папку .idea. Вновь запустить студию и импортировать проект.

в) Нажать Ctrl-Alt-O и запустить оптимизацию импорта.

Кстати, adb сервер можно проверить на версию (и работоспособность) и затем перезапустить:

3) Если Android Studio выдает приблизительно такую ошибку: Error:Execution failed for task ‘:app:dexDebug’.

Надо слева переключиться на опцию Project, найти и удалить папку build которая лежит в папке app, т.е. по пути app/build. Затем перестроить весь проект заново: Build -> Rebuild Project.

Такое же решение если ошибка типа: «не могу удалить (создать) папку или файл» и указан путь, который в ведет в app/build. Тоже удаляем папку build и ребилдим проект.

4) В сообщении об ошибке упоминается heap — виртуальная память. А ошибка обычно вызвана ее нехваткой, т.е. невозможностью получить запрашиваемый объем. Поэтому этот запрашиваемый объем надо уменьшить, т.е. переписать дефолтное значение (обычно 2048 MB которое можно изменить в настройках), на меньшее 1024 MB.

В файле проекта gradle.properties пишем:

5) Android Studio пришет примерно такую ошибку: Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to «83648b99316049d63656d7276cb19cc7e95d70a5»

Возможные причины (кроме необходимости регулярного обновления SDK):

а) Загруженный проект был скомпилирован с помощью уже несовместимого старого gradle плагина. В этом случае надо найти и подключить в своем build.gradle проекта этот более старый плагин. т.е. попробовать более старые версии, например: 1.1.3 (часто именно 1.1.x и подходит).

Найти все версии можно здесь.

б) Если в build.gradle проекта используется beta-версия плагина — это означает, что срок ее истек. Посмотреть последние релизы (продакшн и бета) можно также здесь:

6) Иногда при подключении сторонних библиотек могут дублироваться некоторые файлы (обычно связанные с лицензированием). В сообщении будет что-то содержащее слова: duplicate files. Решение — надо посмотреть в сообщении об ошибке или в документации подключенной сторонней библиотеки — какие именно файлы стали избыточными, и перечислить их в build.gradle модуля для исключения (exclude) из билда.

Это делается в директиве packagingOptions (которая, в свою очередь, находится в директиве android).

Источник

Reporting this fatal error at Android Studio #41658

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-192.7142.36.36.6392135
  • 2.7.2
  • AI-192.7142.36.36.6392135, JRE 1.8.0_212-release-1586-b04x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1536×864, 1920×1080

Exception

The text was updated successfully, but these errors were encountered:

/cc @devoncarew there is a bunch of similar isEof crashes in the analyser. Could somebody on the Analyzer team go through and deduplicate / mark as fixed / etc.

I believe this is a dup of #38405.

cc @stereotype441 for whether we think this issue has been addressed.

Any updates on this one? i can no longer program flutter in android studio, is there anything else that i can try?, kinda stuck here.

Hi @mikechari, it looks like you’re using an older version of Dart:

Dart analysis server, SDK version 2.7.2

Can you try upgrading flutter and see if the latest versions still crash for your?

I tried to upload flutter but it says that i have the latest version:

Also tried using the windows console:

In both cases i had to use —force

Thanks for the reply

@mikechari — that is the most recent stable version of flutter. To try out a newer version, you’d need to change the channel that you’re on:

If you could then re-test (and verify the version of flutter you’re on via flutter —version ) that would be great.

That fixed the problem:

I will remain in beta for now then?

Thanks a lot for the support!

Now i did a roll back to the latest stable version with:

flutter channel stable
flutter upgrade —force

And the error is not coming back, and i am on the stable version again, some how the flutter sdk got messed up and with a change of versions it got fixed.

I will mark this as closed. Since it seems to perhaps come and go, please re-open if you experience this on bleeding edge. It’s likely the same issue as the one linked, which was fixed between the last stable release and bleeding edge.

I’m hitting this, too. It seems to be a legit bug in the dart analyzer. My disk filled up just before I hit this error; perhaps that’s a contributing factor — seems that something is corrupted.

Dart analysis issue

NoSuchMethodError: The getter ‘isEof’ was called on null.

Version information

  • Dart SDK 2.8.3
  • Dart IntelliJ 192.8052
  • Android Studio 3.6.3
  • Mac OS X 10.15.4

Details

NoSuchMethodError: The getter ‘isEof’ was called on null.
Receiver: null
Tried calling: isEof

Debug log

It seems that the IDE can insert invalid characters into certain files (i.e., null) which breaks the analyzer. Rebuilding the file that was open when the IDE crashed seems to be helping.

Yup, that did it.

FWIW, this was a pretty unpleasant crash. There aren’t many resources on the web dealing with this issue — I think it’s worth the effort to dig into the analysis server and try to report the exact file, line, and column with the unexpected token. It would also be great to include instructions: «It’s possible your file was corrupted on disk and includes an invalid character. Please inspect the file to ensure that only valid characters and encodings are included.»

It seems that the IDE can insert invalid characters into certain files (i.e., null) which breaks the analyzer. Rebuilding the file that was open when the IDE crashed seems to be helping.

@brandondiamond thanks for the additional info! Based on your suspicion here I’m going to re-open the issue. Is there any chance you could send us a copy of the corrupted file that caused the issue? (or upload it to github, if it’s suitable for public viewing). That would make it a lot easier to track down what the root cause of the problem is.

Источник

Ide fatal error android studio

Android Studio — IDE для разработки приложений для Андроид от Google на основе IntelliJ IDEA.

Установка:
Страница загрузок на официальном сайте.
Windows:
Необходимо установить JDK и прописать системную переменную JAVA_HOME

Чтобы использовать Android Studio с эмулятором на Windows XP SP3 необходимо скачать и установить старую версию Intel Hardware Accelerated Execution Manager (extra_intel_haxm-windows_r02.zip)
extra_intel_haxm-windows_r02.zip ( 1.66 МБ )

OS X:
Установка Andoid Studio на OS X намного проще — необходимо проинсталировать JDK, а затем Android Studio.

Не запускается эмулятор

Запускается эмулятор, но появляется ошибка «pixel launcher isn’t responding»

При запуске эмулятора лаунчер сообщает: Pixel launcher isn’t responding. Ни какой реакции на нажатия.

Произошло на машине с встроенной видеокартой Intel HD Graphics 3000 — в Windows 10 драйвер не поддерживает OpenGL (вероятно связанно с этим).
Решение: в наcтройках AVD установить значение Software-GLES 2.0 для Emulated performanceGraphics

Решение: Изменить рендер на DirectX.

Создание быстрого x86 эмулятора Android (AVD) на примере Android 5.0.1 (API 21)

Запускаем Android SDK Manager. Загружаем Intel x86 Atom System Image (ознакомьтесь также с Using Hardware Acceleration, Как разогнать эмулятор Android )

Пользуемся

Изменение места хранения AVD. Инструкция.
Проверено на Ubuntu 16.04, Android Studio 3.0, все компоненты обновлены до последней версии (на 19.11.2017)

  • Если подчеркивает красным код, где используются ресурсы: R
  • После внезапного выключения компьютера, после перезапуска может быть во всех проектах весь код красным
  • Если Android Studio выдает приблизительно такую ошибку: Error:Execution failed for task ‘:app:dexDebug’
  • В сообщении об ошибке упоминается heap — виртуальная память
  • Android Studio пришет примерно такую ошибку: Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to «83648b99316049d63656d7276cb19cc7e95d70a5»
  • Иногда при подключении сторонних библиотек могут дублироваться некоторые файлы (обычно связанные с лицензированием). В сообщении будет что-то содержащее слова: duplicate files
  • Если при запуске эмулятора сообщение Cannot set up guest memory ‘pc.ram’: Invalid argument — проверьте в настройках эмулятора объем памяти, например установите 512 Мб.
  • Также быстро работает Android x86 в VirtualBox (Есть маркет в android-x86-4.2-20130228.iso)
  • Используйте в названиях файлов и каталогов только символы латинского алфавита.
  • Путь к файлу не должен превышать 256 символов.
  • Не используйте заглавные буквы — «Error:Execution failed for task ‘:app:mergeDebugResources’. Unsupported node ‘item’ in file «powertoolappsrcmainresmenumenu.xml» — была из-за заглавной буквы в «Menu» «

Учебники по Android Studio:

Renamed Properties in BuildTypes
runProguard => minifyEnabled
zipAlign => zipAlignEnabled
jniDebugBuild => jniDebuggable
renderscriptDebug => renderscriptDebuggable

Renamed Properties in ProductFlavors
flavorGroups => flavorDimensions
packageName => applicationId
testPackageName => testApplicationId
renderscriptSupportMode => renderscriptSupportModeEnabled
ProductFlavor.renderscriptNdkMode => renderscriptNdkModeEnabled

Т.е. например в build.gradle вместо runProguard false необходимо написать minifyEnabled true

Просьба: если вы автор последнего сообщения — просто редактируйте его, а не добавляйте новое.

Добавляем систему контроля версий Mercurial
Разработчики используют систему Mercurial для администрирования исходного кода. У нее два основных назначения:

  • Она хранит все предыдущие версии каждого файла
  • Она может объединить разные версии вашего кода, то есть сотрудники могут независимо работать над кодом и затем объединять свои изменения

О инсталляции и работе с Mercurial хорошо написано здесь:

  1. Hg Init: Часть 2. Основы Mercurial
  2. Hg Init: Часть 3. Привыкаем работать в команде

Устанавливаем Mercurial, если необходимо добавляем в %PATH% путь (в моем случае D:Program FilesTortoiseHg).
Запускаем в консоли из каталога проекта команду hg init — создает репозиторий.
Открываем проект в Android Studio — Studio обнаруживает Mercurial и предлагает добавить (add root).
Пользуемся — правая кнопка на вкладке открытого файла — Mercurial. Здесь те пункты, описанные в статье Hg Init: Часть 2. Основы Mercurial — Pull, Push, Commit и т.д.)

Создам информационную тему по Android Studio.
Android Studio — IDE для разработки приложений для Андроид от Google на основе IntelliJ IDEA.

Во время демонстрации Android Studio на Google IO пытался сразу найти и скачать, но видимо выложили в доступ позже.

Ошибка Abnormal build process termination после обновления до 0.2.1. — не обновляйте 0.2.0 до 0.2.1

избавится от проблемы удалось только вернувшись на 0.2.0 — удалить Android Studio через uninstal, затем удалить вручную каталог — там много остается.

Ошибки:
1. «You are using an old, unsupported version of
Gradle. Please use version 1.Х or greater.

2. Project is using an old version of the Android
Gradle plug-in. The minimum supported
version is 0.Х.X.

Решение О Android Studio

Ошибка Gradle project sync failed error — Решение

В теме нет куратора. По вопросам наполнения шапки обращайтесь к модераторам раздела через кнопку под сообщениями, на которые необходимо добавить ссылки.

Сообщение отредактировал derak1129 — 26.09.20, 17:13

Источник

Adblock
detector

Whenever i try to add a new .xml file in the layout folder in Android Studio 2.0, I get this error.
Screenshot of the error

null
java.lang.NullPointerException
    at com.android.tools.idea.actions.NewAndroidComponentAction.actionPerformed(NewAndroidComponentAction.java:135)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:182)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:311)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:958)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:281)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:109)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:513)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:45)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:533)
at java.awt.Component.processMouseEvent(Component.java:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:866)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

When i try to add any .xml file in the layout folder i shows this error and i cant get a way to remove this.Since i am new to android development so i dont know much about it.Any kind of help would be greatly appriciated.

asked Apr 27, 2016 at 11:41

Ankit Verma's user avatar

2

try these go to layout-new- xml-layoutXMLfile or new -layoutresourcefile (then type the name in small)

answered Apr 27, 2016 at 12:15

Neelay Srivastava's user avatar

2

it looks like android studio ide plugin error
try to reinstall android support lib package from sdk manager

answered Apr 27, 2016 at 11:58

Basi's user avatar

BasiBasi

2,96122 silver badges28 bronze badges

1

right click on layout folder—>new—>layout resource file

answered Apr 27, 2016 at 12:17

AbhayBohra's user avatar

AbhayBohraAbhayBohra

2,02723 silver badges36 bronze badges

Your xml layout file not contain any whitespaces, capital letter(even Single one) like

Myactivity.xml is wrong

you could try like

my_activity.xml instead

also make sure you add layout file by clicking on right click and then adding new file.

answered Apr 27, 2016 at 12:26

Akshat Vajpayee's user avatar

Akshat VajpayeeAkshat Vajpayee

2981 gold badge3 silver badges15 bronze badges

2

This code does not build in Android Studio 3.4. It cites these Gradle errors if I choose «Don’t remind me again for this project» when asked to update Gradle, as the lesson asks:

When I do update Gradle contrary to the lesson plans, and then rebuild, I get this «IDE Fatal Error»:

java.lang.IndexOutOfBoundsException: Index: 45, Size: 407
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at com.intellij.ui.speedSearch.FilteringListModel.getElementAt(FilteringListModel.java:111)
	at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1360)
	at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1311)
	at javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:578)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1663)
	at com.intellij.ui.components.JBList.getPreferredSize(JBList.java:184)
	at javax.swing.JList.getScrollableTracksViewportWidth(JList.java:2772)
	at com.intellij.ui.components.JBScrollPane$Layout.preferredLayoutSize(JBScrollPane.java:699)
	at java.awt.Container.preferredSize(Container.java:1797)
	at java.awt.Container.getPreferredSize(Container.java:1781)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1665)
	at javax.swing.BoxLayout.checkRequests(BoxLayout.java:484)
	at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:301)
	at javax.swing.plaf.basic.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:60)
	at java.awt.Container.preferredSize(Container.java:1797)
	at java.awt.Container.getPreferredSize(Container.java:1781)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1665)
	at com.android.tools.adtui.stdui.DefaultLookupUI.getPopupSize(Lookup.kt:314)
	at com.android.tools.adtui.stdui.Lookup.computeLocation(Lookup.kt:221)
	at com.android.tools.adtui.stdui.Lookup.display(Lookup.kt:203)
	at com.android.tools.adtui.stdui.Lookup.updateFilter(Lookup.kt:107)
	at com.android.tools.adtui.stdui.Lookup.showLookup(Lookup.kt:70)
	at com.android.tools.adtui.stdui.CommonTextField$18.textChanged(CommonTextField.kt:78)
	at com.intellij.ui.DocumentAdapter.insertUpdate(DocumentAdapter.java:15)
	at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
	at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
	at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
	at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
	at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:669)
	at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1330)
	at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:884)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2883)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2930)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2846)
	at java.awt.Component.processEvent(Component.java:6325)
	at java.awt.Container.processEvent(Container.java:2237)
	at java.awt.Component.dispatchEventImpl(Component.java:4903)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
	at com.intellij.ide.IdeKeyboardFocusManager.dispatchEvent(IdeKeyboardFocusManager.java:27)
	at java.awt.Component.dispatchEventImpl(Component.java:4774)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.awt.EventQueue$4.run(EventQueue.java:735)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:755)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:682)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I’ve been having a lot of trouble going through these lessons in Android Studio 3.4.


posted 3 years ago

  • Mark post as helpful


  • send pies

    Number of slices to send:

    Optional ‘thank-you’ note:



  • Quote
  • Report post to moderator

Hello,

I keep comming back with my repeating IDE errors, which occur on one of two computers I use. This time I got an AssertionError, which only occurs in program installed on a lap. I wonder if it is possible components to work two different ways (and how) with same files from GitHub repo.

Regards,

Zuzanna

Bartender

Posts: 7488


posted 3 years ago


  • Likes 2
  • Mark post as helpful


  • send pies

    Number of slices to send:

    Optional ‘thank-you’ note:



  • Quote
  • Report post to moderator

There isn’t much we can guess at without knowing what the actual error is (preferably with stack trace), and the code it is happening in.

Zuzanna Rosin

Greenhorn

Posts: 28


posted 3 years ago

  • Mark post as helpful


  • send pies

    Number of slices to send:

    Optional ‘thank-you’ note:



  • Quote
  • Report post to moderator

Tim, so here it goes. Should I provide anything else to be more clear (I hope to be):

java.lang.AssertionError

at com.android.tools.idea.gradle.project.sync.GradleSyncState.syncEnded(GradleSyncState.java:332)

at com.android.tools.idea.gradle.project.sync.setup.post.upgrade.ForcedPluginPreviewVersionUpgradeStep.checkAndPerformUpgrade(ForcedPluginPreviewVersionUpgradeStep.java:58)

at com.android.tools.idea.gradle.project.sync.setup.post.PluginVersionUpgrade.checkAndPerformUpgrade(PluginVersionUpgrade.java:68)

at com.android.tools.idea.gradle.project.sync.setup.post.upgrade.PluginVersionUpgradeCheckerKt$checkAndShowNotification$listener$1.hyperlinkUpdate(PluginVersionUpgradeChecker.kt:87)

at com.intellij.notification.impl.ui.NotificationsUtil$1.hyperlinkUpdate(NotificationsUtil.java:155)

at javax.swing.JEditorPane.fireHyperlinkUpdate(JEditorPane.java:342)

at javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(HTMLEditorKit.java:875)

at javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(HTMLEditorKit.java:674)

at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)

at java.awt.Component.processMouseEvent(Component.java:6551)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)

at java.awt.Component.processEvent(Component.java:6313)

at java.awt.Container.processEvent(Container.java:2237)

at java.awt.Component.dispatchEventImpl(Component.java:4903)

at java.awt.Container.dispatchEventImpl(Container.java:2295)

at java.awt.Component.dispatchEvent(Component.java:4725)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)

at java.awt.Container.dispatchEventImpl(Container.java:2281)

at java.awt.Window.dispatchEventImpl(Window.java:2746)

at java.awt.Component.dispatchEvent(Component.java:4725)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)

at java.awt.EventQueue.access$500(EventQueue.java:98)

at java.awt.EventQueue$3.run(EventQueue.java:715)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)

at java.awt.EventQueue$4.run(EventQueue.java:737)

at java.awt.EventQueue$4.run(EventQueue.java:735)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)

at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:664)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Zuzanna Rosin

Greenhorn

Posts: 28


posted 3 years ago

  • Mark post as helpful


  • send pies

    Number of slices to send:

    Optional ‘thank-you’ note:



  • Quote
  • Report post to moderator

I can share part-solution:

1. changed SDK location for embedded JDK

2. updated Gradle 5.2.1

and another part I am going to to is chhanging environmental variables to Javajdk1.8.0_181bin

I will tell you tomorrow how it worked for me.

Zuzanna Rosin

Greenhorn

Posts: 28


posted 3 years ago

  • Mark post as helpful


  • send pies

    Number of slices to send:

    Optional ‘thank-you’ note:



  • Quote
  • Report post to moderator

OK, so if it helps someone when receive similar stacktrace — double-check your environmental variables to contain correct JDK file in a Path variable- it was useful in this case.

jQuery in Action, 3rd edition

Вообщем поменял в Android Studio JDK , на Liberica JDK , теперь при входе выдает эти ошибки:

spoiler

java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:224)
    at com.intellij.idea.IdeaApplication.lambda$initApplication$0(IdeaApplication.java:77)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:389)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
    at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:258)
    at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:43)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:504)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:104)
    at com.intellij.openapi.application.impl.ApplicationImpl.lambda$createComponents$9(ApplicationImpl.java:447)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
    at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:471)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:88)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:405)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:391)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:217)
    ... 15 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
    at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:157)
    at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:76)
    at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:82)
    at org.jetbrains.android.sdk.AndroidSdkData.<init>(AndroidSdkData.java:139)
    at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:104)
    at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:78)
    at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:112)
    at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:119)
    at org.jetbrains.android.sdk.AndroidPlatform.parse(AndroidPlatform.java:86)
    at org.jetbrains.android.sdk.AndroidSdkAdditionalData.getAndroidPlatform(AndroidSdkAdditionalData.java:127)
    at org.jetbrains.android.sdk.AndroidPlatform.getInstance(AndroidPlatform.java:68)
    at com.android.tools.idea.sdk.IdeSdks.getEligibleAndroidSdks(IdeSdks.java:600)
    at com.android.tools.idea.sdk.IdeSdks.getFirstAndroidSdk(IdeSdks.java:193)
    at com.android.tools.idea.sdk.IdeSdks.getAndroidSdkPath(IdeSdks.java:119)
    at com.android.tools.idea.startup.GradleSpecificInitializer.setupSdks(GradleSpecificInitializer.java:304)
    at com.android.tools.idea.startup.GradleSpecificInitializer.run(GradleSpecificInitializer.java:128)
    at com.android.tools.idea.AndroidInitialConfigurator.activateAndroidStudioInitializerExtensions(AndroidInitialConfigurator.java:202)
    at com.android.tools.idea.AndroidInitialConfigurator.<init>(AndroidInitialConfigurator.java:71)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:85)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:62)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:45)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:462)
    ... 27 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema PluginClassLoader[org.jetbrains.android, 10.3.4.2] com.intellij.ide.plugins.cl.PluginClassLoader@5171832f
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:49)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 55 more

Поменять JDK обратно не могу тк не могу войти

Android Studio Ide Fatal Error

Discussion in ‘Technical Discussion’ started by ahmed, Sep 10, 2019.

Tags:

  • android export
  • android studio
  • android studio error
  • androidstudio
  • studio

  1. ahmed

    ahmed
    Boxer

    Joined:
    Aug 18, 2018
    Messages:
    49
    Likes Received:
    1

    hi boxers
    just when i open android studio its give me ( IDE error occurred ) like screenshoot below
    i have installed java ( jdk1.8.0_191 ) version and identify its paths in in the system
    i have long time searching on google to fix it but i cant , plz help me @AndyG @Sean Buildbox @volcank @

    Attached Files:

    • Untitled.png

      Untitled.png
      File size:
      18.1 KB
      Views:
      7

    • 2.png

      2.png
      File size:
      36 KB
      Views:
      5

    Last edited: Sep 10, 2019


    ahmed,
    Sep 10, 2019

    #1

(You must log in or sign up to reply here.)

Show Ignored Content

Share This Page

  • Log in with Facebook
Your name or email address:
Do you already have an account?
  • No, create an account now.
  • Yes, my password is:
  • Forgot your password?

Stay logged in

Buildbox Official Forum

  • Search titles only
Posted by Member:

Separate names with a comma.

Newer Than:
  • Search this thread only
  • Search this forum only
    • Display results as threads

Useful Searches

  • Recent Posts

More…

This page tracks known issues with
Android Studio Electric Eel | 2022.1.1 and Android Gradle plugin
7.4.0. If you experience an issue not already included
here, please report a bug.

Upgrade to preview: Each release of Android Studio and the Android
Gradle plugin aims to improve stability and performance, and add new features.
To experience the benefits of upcoming releases now, download and install
Android Studio Preview.

Known Issues with Android Studio

This section describes known issues that exist in the latest stable version of
Android Studio.

Error when rendering Compose Preview

Starting with Android Studio Chipmunk, if you’re seeing
java.lang.NoSuchFieldError: view_tree_saved_state_registry_owner or
java.lang.ClassNotFoundException: androidx.savedstate.R$id in the issues panel,
make sure to include a debugImplementation dependency to
androidx.lifecycle:lifecycle-viewmodel-savedstate in your module.

If you’re seeing java.lang.NoSuchFieldError: view_tree_lifecycle_owner in the
issues panel, make sure to include a debugImplementation dependency to
androidx.lifecycle:lifecycle-runtime in your module.

If you’re seeing java.lang.NoClassDefFoundError: Could not initialize class androidx.customview.poolingcontainer.PoolingContainer or
java.lang.NoClassDefFoundError: androidx/customview/poolingcontainer/PoolingContainerListener
in the issues panel, make sure to include a debugImplementation dependency to
androidx.customview:customview-poolingcontainer in your module.

Error when using different passwords for key and keystore

Starting with version 4.2, Android Studio now runs on JDK 11. This update
causes an underlying behavior change related to signing keys.

When you navigate to Build > Generate
Signed Bundle / APK
and attempt to configure app signing for an app bundle or
an APK, entering different passwords for the key and keystore may result in the
following error:

Key was created with errors:
Warning: Different store and Key passwords not supported for PKCS12 Key stores

To work around this issue, enter the same password for both the key and
keystore.

Android Studio doesn’t start after installing version 4.2

Studio tries to import previous
.vmoptions and sanitize them to work with the garbage collector used by
JDK 11. If that process fails, the IDE may not start for certain users who
set custom VM options in the .vmoptions file.

To work around this issue, we recommend commenting out custom options
in .vmoptions (using the “#” character). The .vmoptions file can be
found in the following locations:

Windows

C:UsersYourUserNameAppData[Local|Roaming]GoogleAndroidStudio4.2studio64.exe.vmoptions

macOS

~/Library/Application Support/Google/AndroidStudio4.2/studio.vmoptions

Linux

~/.config/Google/AndroidStudio4.2/studio64.vmoptions

If Studio still doesn’t start after trying this workaround,
see Studio doesn’t start after upgrade
below.

Apps using Database Inspector crash on Android 11 emulator

Apps using the Database Inspector may crash when running on the Android 11
emulator, with an error like the following appearing in logcat:

 Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

To fix this issue, upgrade your Android 11 emulator to version 9 or higher by
navigating to Tools > SDK Manager. In the SDK Platforms tab, check
the box labeled Show Package Details and select revision 9 or higher of
the Android 11 emulator.

Studio doesn’t start after upgrade

If Studio doesn’t start after an upgrade, the problem may be due to an invalid
Android Studio configuration imported from a previous version of Android Studio
or an incompatible plugin. As a workaround, try deleting (or renaming, for
backup purposes) the directory below, depending on the Android Studio version
and operating system, and start Android Studio again. This will reset Android
Studio to its default state, with all third-party plugins removed.

For Android Studio 4.1 and later:

  • Windows: %APPDATA%GoogleAndroidStudio<version>

    Example: C:Usersyour_user_nameAppDataRoamingGoogleAndroidStudio4.1

  • macOS: ~/Library/Application Support/Google/AndroidStudio<version>

    Example: ~/Library/Application Support/Google/AndroidStudio4.1

  • Linux: ~/.config/Google/AndroidStudio<version> and ~/.local/share/Google/AndroidStudio<version>

    Example: ~/.config/Google/AndroidStudio4.1 and ~/.local/share/Google/AndroidStudio4.1

For Android Studio 4.0 and earlier:

  • Windows: %HOMEPATH%.AndroidStudio<version>config

    Example: C:Usersyour_user_name.AndroidStudio3.6config

  • macOS: ~/Library/Preferences/AndroidStudio<version>

    Example: ~/Library/Preferences/AndroidStudio3.6

  • Linux: ~/.AndroidStudio<version>/config

    Example: ~/.AndroidStudio3.6/config

Note that the configuration directory for Canary and Beta releases of Android
Studio is PreviewX.Y instead of X.Y for the
<version>. For example, Android
Studio 4.1 Canary builds use AndroidStudioPreview4.1, instead of the
AndroidStudio4.1 directory that is used for Release Candidates and Stable
releases.

Compilation issue in Kotlin multiplatform projects

Compilation errors may arise in Kotlin MPP code due to missing symbols.
Upgrading your Kotlin plugin to version 1.4 should resolve this issue.

Key mapping conflicts on Linux

On Linux, certain keyboard shortcuts conflict with default Linux keyboard
shortcuts and those of popular window managers, such as KDE and GNOME.
These conflicting keyboard shortcuts may not work as expected in Android Studio.

More information about this issue (including potential workarounds) can be found
in IntelliJ’s bug tracker.

Small UI text on Chrome OS

On Chrome OS, text might appear much smaller than in previous releases. To work
around this issue, do the following:

  1. Open the Settings window by clicking File > Settings
  2. Navigate to Appearance & Behavior > Appearance.
  3. Select Use custom font.
  4. Increase the font size.
  5. In the Settings window, navigate to Editor > Font.
  6. Increase the font size.
  7. Click OK.

Code editing

This section describes known issues related to the code editor.

Frozen keyboard input — «iBus» problems on Linux

There are some known
interactions between the iBus daemon on Linux and Android Studio. In some
scenarios, the IDE stops responding to keyboard input or starts inputting
random characters. This bug is triggered by some missing synchronization
between iBus and XLib + AWT, and has already been reported upstream to
JetBrains
and iBus. There are
three current workarounds for this issue:

  • Workaround 1: Force iBus into synchronous mode. Before starting Android
    Studio, run the following on the command line:

    $ IBUS_ENABLE_SYNC_MODE=1 ibus-daemon -xrd
  • Workaround 2: Disable iBus input in Android Studio. To disable iBus input
    for Android Studio only, run the following on the command line:

    $ XMODIFIERS= ./bin/studio.sh

    This workaround only disables input methods for Android Studio, not
    any other applications you may be running. Note that if you restart the
    daemon while Android Studio is running (for example, by running
    ibus-daemon -rd), you effectively disable the input methods for all
    other applications and may also crash Android Studio’s JVM with a
    segmentation fault.

  • Workaround 3: Double-check the shortcut bindings to make sure that the
    Next input shortcut is not set to Control+Space, since this is also
    the code completion shortcut in Android Studio. Ubuntu 14.04 (Trusty)
    makes Super+Space the default shortcut, but settings from previous
    versions may still be around. To check your shortcut bindings, run
    ibus-setup on the command line to open the IBus Preferences window.
    Under Keyboard Shortcuts, check the Next input method. If it is
    set to Control+Space, change it to Super+Space, or another shortcut of
    your choice.

Project configuration

This section describes known issues related to project configuration and Gradle
sync.

Gradle Sync Failed: Broken Pipe

The issue is that the Gradle daemon is trying to use IPv4 instead of IPv6.

  • Workaround 1: On Linux, put the following in your ~/.profile or
    ~/.bash_profile:

    export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=true"
  • Workaround 2: in Android Studio’s vmoptions
    file,
    change the line -Djava.net.preferIPv4Addresses=true to
    -Djava.net.preferIPv6Addresses=true For more information, see the
    Networking IPv6 User
    Guide.

«peer not authenticated» errors from Gradle sync or SDK Manager

The root cause of these errors is a missing certificate in
$JAVA_HOME/jre/lib/certificates/cacerts. To resolve these errors, proceed
as follows:

  • If you’re behind a proxy, try to connect directly. If the direct
    connection works, then in order to connect via the proxy you may need to
    use keytool to add the proxy server’s certificate to the cacerts file.
  • Re-install a supported, unmodified JDK. There’s a
    known issue
    affecting Ubuntu users, which results in an empty
    /etc/ssl/certs/java/cacerts. To work around this issue, execute the
    following on the command line:

    sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure

Deploying

This section describes known issues related to deploying your app to a connected
device.

[Mac OS only] Incremental updates are not applied due to an issue with Gradle file watching on projects saved under /System/Volumes/Data

Gradle issue 18149 affects
Android Gradle Plugin versions 7.0 and higher because they require Gradle version 7.0 and higher. Starting in Gradle 7.0, file watching is enabled by default.
If you are working on Mac OS and your project is saved under
/System/Volumes/Data, Gradle file watching will not properly track file changes.
This will cause the Build System to not see any file changes and it will
therefore not update the APK(s). The incremental deployment code will then do
nothing because the local APK state is the same as on the device.

To work around this issue you should move your project’s directory to your user
directory, that is, under /Users/username. The Build System will then be
properly notified about file changes by Gradle file watching and incremental
changes will be successfully applied.

Android Emulator HAXM on macOS High Sierra

The Android Emulator on
macOS High Sierra (10.13) requires HAXM 6.2.1+ for best
compatibility and stability with macOS. However, macOS 10.13 has a more
involved process to install kernel extensions such as HAXM. You need
to manually allow the kernel extension itself to be installed as follows:

  1. First, attempt to install the latest version of HAXM from the
    SDK Manager.
  2. In MacOS, go to System Preferences > Security and Privacy.
  3. If you see an alert that System software from developer «Intel Corporation
    Apps» was blocked from loading
    , click Allow:

For more information and workarounds, see

this Apple webpage and
issue 62395878.

Apply Changes

This section describes known issues that are related to Apply
Changes.

New app name not applied

If you rename your app and then try to apply that change, the updated name might
not be reflected. To work around this issue, click Run
Run icon
to re-deploy your app and see your changes.

Issue in Android Runtime throws error

If you’re using a device that runs Android 8.0 or 8.1, you might encounter
«VERIFICATION_ERROR» messages when trying to apply certain types of changes
(especially if you’re using Kotlin). This message is caused by an issue with the
Android Runtime that is fixed in Android 9.0 and higher. Although the issue
causes Apply Changes to fail, you can still Run
Run icon
your app again to see your changes. However, we recommend that you upgrade the
device to Android 9.0 or greater.

Debugging and testing

This section describes known issues related to debugging and testing your app.

JUnit tests missing resources in classpath when run from Android Studio

If you have specific resource folders in your Java modules, then those
resources won’t be found when running tests from the IDE. Running tests
using Gradle from the command line will work. Executing the Gradle check
task from the IDE will also work. See issue
64887 for more
details.

This issue occurs because as of IntelliJ 13, which requires that you only have
a single folder as the classpath. IntelliJ’s builder copies all resources
into that build folder, but Gradle doesn’t copy over the resources.

  • Workaround 1: Run the Gradle check task from the IDE rather than
    running a unit test.
  • Workaround 2: Update your build script to manually copy resources into
    the build folder. See
    comment #13
    for more information.

Running JUnit tests may compile the code twice

When creating a new project, the template JUnit configuration might be created
with two «Before launch» steps: Make and Gradle-aware Make. This configuration
is then propagated to all created JUnit run configurations.

  • To fix the issue for the current project, click Run > Edit
    Configurations
    and change the default JUnit configuration to only
    include the Gradle-aware Make step.
  • To fix the issue for all future projects, click File > Close
    Project
    . You should see the welcome screen. Then click Configure >
    Project Defaults > Run Configurations
    and change the JUnit
    configuration to only include the Gradle-aware Make step.

Some test run configurations don’t work

Not all run configurations that
are available when right-clicking a test method are valid. Specifically, the
following configurations are not valid:

  • Gradle run configurations (which have a Gradle logo as the icon) don’t
    work.
  • JUnit run configurations (which have an icon without the green Android)
    don’t apply to instrumentation tests, which cannot be run on the local JVM.

Android Studio also remembers the run configuration created in a given
context (for example, right-clicking a specific class or method), and will not
offer to run in a different configuration in the future. To fix this, click
Run > Edit Configurations and remove the incorrectly-created
configurations.

Adding Java breakpoints while debugging native code

While your app is paused at a breakpoint in your native
code, the Auto and Dual debuggers may not immediately recognize
new Java breakpoints that you set. To avoid this issue, add Java breakpoints
either before starting a debug session or while the app is paused on a Java
breakpoint. For more information, see issue
229949.

Stepping out of the native debugger

While using the Auto or Dual debugger to
debug Java and native code, if you step into a native function from
your Java code (for example, the debugger pauses execution at a line in your
Java code that calls a native function and you click Step Into
) and you want to return to your Java code, click
Resume Program (instead of Step Out or Step Over ). Your app process will still be paused, so click Resume
Program
in the your-module-java
tab to resume it. For more information, see issue
224385.

Native debugger hangs while loading libraries

While using the native debugger for the first time after upgrading to Android
Studio 4.2 and higher, the native debugger may stop responding while loading
libraries from the Android device. This issue is a sticky problem that continues
to happen even if you stop and restart the debugger. To fix this problem,
delete the LLDB cache at $USER/.lldb/module-cache/.

Native debugger crashes with «Debugger process finished with exit code 127»

This error occurs on Linux-based platforms when starting the
native debugger. It indicates that one of the libraries required by the native
debugger is not installed on the local system. The name of the missing
library may be already printed in the idea.log file. If not, you can use a
terminal to navigate to the Android Studio installation directory and execute
the bin/lldb/bin/LLDBFrontend --version command line to learn which libraries
are missing. Typically, the missing library is ncurses5 as some recent Linux
distributions have already upgraded to ncurses6.

Profilers

This section describes known issues with the Profilers.

Native Memory Profiler: Profiling not available during app startup

The Native Memory Profiler is currently unavailable during app startup. This
option will be available in an upcoming release.

As a workaround, you can use the Perfetto standalone command-line profiler
to capture startup profiles.

Timeout errors in CPU Profiler

You may experience «Recording failed to stop» errors in the Android Studio CPU
Profiler when you select the Sample Java Methods or Trace Java Methods
configurations. These are often timeout errors, especially if you see the
following error message in the idea.log file:

Wait for ART trace file timed out

The timeout errors tend to affect traced methods more than sampled methods and
longer recordings more than shorter recordings. As a temporary workaround, it
may be helpful to try shorter recordings to see if the error disappears.

If you experience timeout issues with the Profiler, please file a bug
that includes the make/model of your device(s) and any relevant entries from
idea.log and logcat.

ADB exception when debugging or profiling

When using Platform Tools 29.0.3, native debugging and the Android Studio
Profilers might not work properly, and you might see either
«AdbCommandRejectedException» or «Failed to connect port» in the idea.log
file when you select Help > Show Log. Upgrading the Platform Tools to
29.0.4 or higher fixes both issues.

To upgrade the Platform Tools, do the following:

  1. Open the SDK Manager from Android Studio by clicking Tools >
    SDK Manager
    or click SDK Manager

    in the toolbar.
  2. Click the checkbox next to Android SDK
    Platform-Tools
    so it shows a checkmark. A download icon
    should appear in the left column.
  3. Click Apply or OK.

Plugin prevents Build Output window from working

Using the CMake simple highlighter plugin prevents content from appearing in the
Build Output window. The build runs and the Build Output tab appears, but
there is no output printed (issue #204791544).

Installation order prevents launch

Installing a newer version of Android Studio before an older version might
prevent the older version from launching. For example, if you first install the
canary version of Android Studio, and then try to install and launch the stable
version, the stable version might not launch. In cases like this, you must
clear the cache to get the stable (older) version to launch. On macOS, to clear
the cache delete the
Library/ApplicationSupport/Google/AndroidStudioversion_number
directory. On Windows, to clear the cache use
Disk Cleanup.

Espresso Test Recorder doesn’t work with Compose

The
Espresso Test Recorder
doesn’t work with projects that include Compose. To create UI tests for projects
that include Compose, see Testing your Compose layout.

Logcat shortcut conflicts with non-English keyboard layouts

If you’re using a non-English keyboard layout, a default Logcat keyboard
shortcut might conflict with the layout and prevent you from typing certain
characters when editing text in Android Studio. To work around this issue,
delete or re-map the conflicting Logcat keymap. To edit the Logcat keymaps in
Android Studio, go to Android Studio > Settings > Keymap and search for
Logcat in the list of keymaps. For more information, see
issue #263475910.

This issue will be resolved by the removal of the Logcat shortcut in Android
Studio Electric Eel Patch 1.

Known issues with the Android Gradle Plugin

This section describes known issues that exist in the latest stable version of
the Android Gradle plugin.

Not all dynamic-feature library dependencies are lint checked

When running lint with checkDependencies = true from an app module,
dynamic-feature library dependencies aren’t checked unless they’re also app
dependencies (issue #191977888).
As a workaround, the lint task can be run on those libraries.

Signing file named with carriage return characters

JAR signing (v1 scheme) does not support file names containing carriage
return characters
(issue #63885809).

Modifying variant outputs at build time might not work

Using the Variant API to manipulate variant outputs is broken with the new
plugin. It still works for simple tasks, such as changing the APK name during
build time, as shown below:

// If you use each() to iterate through the variant objects,
// you need to start using all(). That's because each() iterates
// through only the objects that already exist during configuration time—
// but those object don't exist at configuration time with the new model.
// However, all() adapts to the new model by picking up object as they are
// added during execution.
android.applicationVariants.all { variant ->
    variant.outputs.all {
        outputFileName = "${variant.name}-${variant.versionName}.apk"
    }
}

However, more complicated tasks that involve accessing outputFile objects
no longer work. That’s because variant-specific tasks are no longer created
during the configuration stage. This results in the plugin not knowing
all of its outputs up front, but it also means faster configuration times.

manifestOutputFile is no longer available

The processManifest.manifestOutputFile() method is no longer
available, and you get the following error when you call it:

A problem occurred configuring project ':myapp'.
   Could not get unknown property 'manifestOutputFile' for task
   ':myapp:processDebugManifest' of type
   com.android.build.gradle.tasks.ProcessManifest.

Instead of calling manifestOutputFile() to get the manifest file for each
variant, you can call processManifest.manifestOutputDirectory() to return the
path of the directory that contains all generated manifests. You can then
locate a manifest and apply your logic to it. The sample below dynamically
changes the version code in the manifest:

android.applicationVariants.all { variant ->
    variant.outputs.all { output ->
        output.processManifest.doLast {
            // Stores the path to the maifest.
            String manifestPath = "$manifestOutputDirectory/AndroidManifest.xml"
            // Stores the contents of the manifest.
            def manifestContent = file(manifestPath).getText()
            // Changes the version code in the stored text.
            manifestContent = manifestContent.replace('android:versionCode="1"',
                    String.format('android:versionCode="%s"', generatedCode))
            // Overwrites the manifest with the new text.
            file(manifestPath).write(manifestContent)
        }
    }
}

Issues with AGP 7.3.0 AIDL support and Kotlin 1.7.x

Using AGP 7.3.0 with KAPT in Kotlin 1.7.x causes the AIDL source sets for
specific build variants to be removed. You can still use the other AIDL source
sets, including those of main/, build types, product flavors, and combinations
of product flavors. If you need to use the variant-specific AIDL source sets,
continue to use Kotlin 1.6.21.

Fixed known issues

This section describes known issues that have been fixed in a recent release. If
you are experiencing any of these issues, you should update Android
Studio to the latest stable or preview version.

Fixed in Android Studio 2021.1.1

  • Missing lint output: There is no lint text output printed to stdout when
    the lint task is UP-TO-DATE
    (issue #191897708). Fixed in
    AGP 7.1.0-alpha05.
  • Problems with unit testing an app project that uses the Hilt plugin:
    The unit test classpath contains the non-instrumented app classes, which means
    Hilt does not instrument the app classes to handle dependency injection when
    running unit tests
    (issue #213534628).
    Fixed in AGP 7.1.1.

Fixed in Android Studio 2020.3.1

  • Lint exceptions in Kotlin projects: Kotlin projects that set
    checkDependencies = true may encounter null pointer exceptions or errors
    (issue #158777858).

Fixed in Android Studio 4.2

  • IDE freezes on macOS Big Sur: Android Studio 4.1 might freeze when you
    open a dialog.

Fixed in Android Studio 4.1

  • Restart to apply memory settings from previous version of IDE: After
    updating Android Studio, you need to restart Android Studio to apply any
    memory settings migrated from an earlier version of the IDE.
  • Manifest class with custom permission strings is no longer generated by
    default:
    If you want to generate the class, set
    android.generateManifestClass = true.

Fixed in Android Studio 3.6

  • APK installation error on LineageOS: Deploying your app to devices
    running certain versions of LineageOS or CyanogenMod might fail and throw
    an INSTALL_PARSE_FAILED_NOT_APK exception.

    On Android Studio 3.6 Beta 1 and higher, the IDE handles this exception by
    performing a full app install when you deploy your app
    to LineageOS or CyanogenMod devices, which might result in longer deploy
    times.

Fixed in Android Studio 3.5.2

  • Broken XML code style: When editing XML code, the IDE applied an
    incorrect code style when you selected Code > Reformat Code from the
    menu bar.

Fixed in Android Studio 3.3.1

  • Out of memory errors when scanning C++-based projects: When Gradle scans
    a project that has C++ code in more than one location on the same drive, the
    scan includes all directories below the first common directory. Scanning
    a large number of directories and files may lead to out of memory errors.

    For more information on this issue, read
    the bug associated with the
    issue.

So I’ve been having some problems lately with Android Studio (Gradle not syncing, can’t target JDK, etc..). So I completely uninstalled and reinstalled both Android Studio and JDK. But now when I try to launch it the splash screen loads then I’m greeted with this message

Internal error. Please report to https://code.google.com/p/android/issues

java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:212)
at com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:49)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:257)
at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:43)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:106)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$createComponents$9(ApplicationImpl.java:437)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:444)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:90)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:396)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:382)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:205)
... 15 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:157)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:76)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:82)
at org.jetbrains.android.sdk.AndroidSdkData.<init>(AndroidSdkData.java:139)
at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:104)
at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:78)
at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:112)
at org.jetbrains.android.sdk.AndroidSdkData.getSdkData(AndroidSdkData.java:119)
at org.jetbrains.android.sdk.AndroidPlatform.parse(AndroidPlatform.java:86)
at org.jetbrains.android.sdk.AndroidSdkAdditionalData.getAndroidPlatform(AndroidSdkAdditionalData.java:137)
at org.jetbrains.android.sdk.AndroidPlatform.getInstance(AndroidPlatform.java:68)
at com.android.tools.idea.sdk.IdeSdks.getEligibleAndroidSdks(IdeSdks.java:591)
at com.android.tools.idea.sdk.IdeSdks.getFirstAndroidSdk(IdeSdks.java:191)
at com.android.tools.idea.sdk.IdeSdks.getAndroidSdkPath(IdeSdks.java:117)
at com.android.tools.idea.startup.GradleSpecificInitializer.setupSdks(GradleSpecificInitializer.java:283)
at com.android.tools.idea.startup.GradleSpecificInitializer.run(GradleSpecificInitializer.java:116)
at com.android.tools.idea.AndroidInitialConfigurator.activateAndroidStudioInitializerExtensions(AndroidInitialConfigurator.java:206)
at com.android.tools.idea.AndroidInitialConfigurator.<init>(AndroidInitialConfigurator.java:72)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:103)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:80)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:63)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:459)
... 27 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema PluginClassLoader[org.jetbrains.android, 10.3.2.1] com.intellij.ide.plugins.cl.PluginClassLoader@e5e4d0b
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 54 more

Note: I have JDK 11.0.1 installed and IntelliJ IDEA along Android Studio

Asked
1 year, 9 months ago

Viewed
564 times

I tried uninstalling and reinstalling android studio but I keep getting this error.

Blockquote

java.nio.file.InvalidPathException: Illegal char <:> at index 22: distributionUrl=https/://services.gradle.org/distributions/gradle-2.10-all.zipgradle.properties
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.nio.file.Path.of(Path.java:147)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at org.jetbrains.plugins.gradle.util.GradlePropertiesUtil.getGradleServiceDirectoryPath(GradlePropertiesUtil.kt:41)
at org.jetbrains.plugins.gradle.util.GradlePropertiesUtil.getPossiblePropertiesFiles(GradlePropertiesUtil.kt:31)
at org.jetbrains.plugins.gradle.util.GradlePropertiesUtil.getGradleProperties(GradlePropertiesUtil.kt:22)
at org.jetbrains.plugins.gradle.util.GradleJvmResolutionUtil.canUseGradleJavaHomeJdk(GradleJvmResolutionUtil.kt:118)
at org.jetbrains.plugins.gradle.util.GradleJvmResolutionUtil.setupGradleJvm(GradleJvmResolutionUtil.kt:37)
at com.android.tools.idea.gradle.project.importing.GradleProjectImporter.configureNewProject(GradleProjectImporter.java:242)
at com.android.tools.idea.gradle.project.importing.GradleProjectImporter.createProject(GradleProjectImporter.java:221)
at com.android.tools.idea.npw.model.NewProjectModel$multiTemplateRenderer$1.invoke(NewProjectModel.kt:110)
at com.android.tools.idea.npw.model.NewProjectModel$multiTemplateRenderer$1.invoke(NewProjectModel.kt:93)
at com.android.tools.idea.npw.model.MultiTemplateRenderer.countDown(MultiTemplateRenderer.kt:123)
at com.android.tools.idea.npw.model.MultiTemplateRenderer.skipRender(MultiTemplateRenderer.kt:111)
at com.android.tools.idea.npw.model.RenderTemplateModel.handleSkipped(RenderTemplateModel.kt:119)
at com.android.tools.idea.wizard.model.ModelWizard.handleFinished(ModelWizard.java:417)
at com.android.tools.idea.wizard.model.ModelWizard.goForward(ModelWizard.java:339)
at com.android.tools.idea.wizard.model.ModelWizardDialog$FinishAction.doAction(ModelWizardDialog.java:350)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1834)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
at java.desktop/java.awt.Component.processEvent(Component.java:6419)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:971)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:906)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:838)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:451)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:808)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:505)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.desktop/java.awt.Dialog.show(Dialog.java:1063)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:711)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:438)
at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1700)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1659)
at com.android.tools.idea.actions.AndroidNewProjectAction.actionPerformed(AndroidNewProjectAction.kt:49)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282)
at com.intellij.openapi.actionSystem.ex.ActionUtil.invokeAction(ActionUtil.java:446)
at com.intellij.openapi.actionSystem.ex.ActionUtil.invokeAction(ActionUtil.java:431)
at com.intellij.ui.components.labels.ActionLink$1.linkSelected(ActionLink.java:47)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:138)
at com.intellij.ui.components.labels.ActionLink.doClick(ActionLink.java:56)
at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:322)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
at java.desktop/java.awt.Component.processEvent(Component.java:6419)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:971)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:906)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:838)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:451)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:808)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:505)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Blockquote

asked May 12, 2021 at 3:44

shree's user avatar

2

There was a problem with the distributionUrl and plugin version ,

distributionUrl=https/://services.gradle.org/distributions/gradle-2.10-all.zip

So I went to , Configure > Restore Default Settings.

And I no longer get the problem.

answered May 12, 2021 at 12:26

shree's user avatar

shreeshree

11 silver badge2 bronze badges

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Ide error occurred перевод
  • Ict a7 ошибки купюроприемник
  • I2cp error listening to port 7654 is another i2p instance running
  • Icsee error content ошибка сети
  • I2c rw error status 0x4198fe00

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии