Status Update
Comments
rk...@google.com <rk...@google.com>
br...@gmail.com <br...@gmail.com> #2
java.util.NoSuchElementException: No value present
at java.base/java.util.Optional.orElseThrow(Unknown Source)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.getDefaultDefinition(DeviceDefinitionList.java:163)
at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Unknown Source)
at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(Unknown Source)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.setDefaultDevices(DeviceDefinitionList.java:151)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.<init>(DeviceDefinitionList.java:118)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.<init>(DeviceDefinitionList.java:109)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionPanel.$$$setupUI$$$(ChooseDeviceDefinitionPanel.java)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionPanel.<init>(ChooseDeviceDefinitionPanel.java:39)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.createUIComponents(ChooseDeviceDefinitionStep.java:90)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.$$$setupUI$$$(ChooseDeviceDefinitionStep.java)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.<init>(ChooseDeviceDefinitionStep.java:45)
at com.android.tools.idea.avdmanager.AvdWizardUtils.createAvdWizard(AvdWizardUtils.java:237)
at com.android.tools.idea.avdmanager.AvdManagerImpl$createAvd$2.invokeSuspend(LocalEmulatorProvisionerFactory.kt:81)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:208)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:190)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:478)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:121)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:690)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:593)
at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:593)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:997)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:997)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
ro...@google.com <ro...@google.com> #3
(select *Help > Show Log in Finder / Explorer*)
For more information on what’s needed and how to obtain this information please read the guide at
pa...@solarized.dev <pa...@solarized.dev> #4
I paste below important idea.log lines:
2023-12-12 18:25:37,555 [ 50554] SEVERE - CoroutinesUtils.kt - No value present
java.util.NoSuchElementException: No value present
at java.base/java.util.Optional.orElseThrow(Optional.java:377)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.getDefaultDefinition(DeviceDefinitionList.java:163)
at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.setDefaultDevices(DeviceDefinitionList.java:151)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.<init>(DeviceDefinitionList.java:118)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.<init>(DeviceDefinitionList.java:109)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionPanel.$$$setupUI$$$(ChooseDeviceDefinitionPanel.java)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionPanel.<init>(ChooseDeviceDefinitionPanel.java:39)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.createUIComponents(ChooseDeviceDefinitionStep.java:90)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.$$$setupUI$$$(ChooseDeviceDefinitionStep.java)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.<init>(ChooseDeviceDefinitionStep.java:45)
at com.android.tools.idea.avdmanager.AvdWizardUtils.createAvdWizard(AvdWizardUtils.java:270)
at com.android.tools.idea.avdmanager.AvdManagerImpl$createAvd$2.invokeSuspend(LocalEmulatorProvisionerFactory.kt:77)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)
at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:789)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:740)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:734)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:759)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:571)
at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1444)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:571)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
2023-12-12 18:25:37,557 [ 50556] SEVERE - CoroutinesUtils.kt - Android Studio Hedgehog | 2023.1.1 Build #AI-231.9392.1.2311.11076708
2023-12-12 18:25:37,557 [ 50556] SEVERE - CoroutinesUtils.kt - JDK: 17.0.7; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-12-12 18:25:37,557 [ 50556] SEVERE - CoroutinesUtils.kt - OS: Linux
ro...@google.com <ro...@google.com>
ju...@google.com <ju...@google.com>
ju...@google.com <ju...@google.com> #5
This is a weird one
Studio is expecting to find a device definition in there that's absent for some reason
ju...@google.com <ju...@google.com> #6
In Hedgehog, the default device to file map is
medium_phone devices.xml
pixel_tablet nexus.xml
wearos_square wear.xml
desktop_medium desktop.xml
tv_1080p tv.xml
automotive_1024p_landscape automotive.xml
Nexus S nexus.xml
In Iguana, the default phone became pixel_fold in nexus.xml
ju...@google.com <ju...@google.com> #7
Everyone,
If this is blocking you I expect uninstalling and reinstalling Studio would fix it
br...@gmail.com <br...@gmail.com> #8
br...@gmail.com <br...@gmail.com> #9
Android Studio Jellyfish | 2023.3.1 Canary 4
Build #AI-233.13135.103.2331.11301475, built on January 11, 2024
Runtime version: 17.0.9+0-17.0.9b1087.9-11255266 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.6.2
GC: G1 Young Generation, G1 Old Generation
Memory: 5120M
Cores: 12
Metal Rendering is ON
This also occurs on Hedgehog which I've also got installed via toolbox
br...@gmail.com <br...@gmail.com> #10
jb...@google.com <jb...@google.com>
ju...@google.com <ju...@google.com> #11
I'm stumped
I added some diagnostic logging to DeviceDefinitionList. When a Studio nightly build picks up the change I'm gonna ask you,
It just dawned on me, however, that this seems to coincide with the new device manager. I find that highly sus. The stack traces are occurring in *waves hands* Kotlin coroutine contexts that I am not familiar with. I'm now wondering if this is some weird threading thing.
ju...@google.com <ju...@google.com> #12
In the meantime, something I think that's worth trying is trying to reproduce this issue in the old device manager. In your Studio:
- Help - Edit Custom Properties...
- Add device.manager.unified.device.manager.enabled = false
- Restart Studio
Let me know if you see this issue in the old device manager. Thank you!
ju...@google.com <ju...@google.com> #13
I added a bunch of logging around where the error is happening. Another thing to try is a
Android Studio Jellyfish | 2023.3.1 Nightly 2024-01-16
Build #AI-233.13135.103.2331.11320361, built on January 16, 2024
...
and newer contains the logging. When you do this please send me your idea.log. Thank you.
br...@gmail.com <br...@gmail.com> #14
With this error being alerted to me
```
java.util.NoSuchElementException:
Tablet[pixel_tablet]
Phone[pixel_fold] = [small_phone, medium_phone, pixel_fold, pixel_8_pro, pixel_8, pixel_7a, pixel_7_pro, pixel_7, pixel_6a, pixel_6_pro, pixel_6, pixel_5, pixel_4a, pixel_4_xl, pixel_4, pixel_3a_xl, pixel_3a, pixel_3_xl, pixel_3, pixel_2_xl, pixel_2, pixel_xl, pixel, resizable]
Tablet[pixel_tablet] = [medium_tablet, Pixel Tablet]
Wear OS[wearos_square] = [wearos_square, wearos_small_round, wearos_rect, wearos_large_round]
Desktop[desktop_medium] = [desktop_small, desktop_medium, desktop_large]
TV[tv_1080p] = [tv_720p, tv_4k, tv_1080p]
Automotive[automotive_1024p_landscape] = [automotive_1080p_landscape, automotive_1024p_landscape]
Legacy[Nexus S] = [pixel_c, Nexus S, Nexus One, Nexus 9, Nexus 7, Nexus 7 2013, Nexus 6P, Nexus 6, Nexus 5X, Nexus 5, Nexus 4, Nexus 10, Galaxy Nexus, 8in Foldable, 7in WSVGA (Tablet), 7.4in Rollable, 6.7in Foldable, 5.4in FWVGA, 5.1in WVGA, 4in WVGA (Nexus S), 4.7in WXGA, 4.65in 720p (Galaxy Nexus), 3.7in WVGA (Nexus One), 3.7 FWVGA slider, 3.4in WQVGA, 3.3in WQVGA, 3.2in QVGA (ADP2), 3.2in HVGA slider (ADP1), 2.7in QVGA slider, 2.7in QVGA, 13.5in Freeform, 10.1in WXGA (Tablet), 7.6in Foldable]
at com.android.tools.idea.avdmanager.DeviceDefinitionList.lambda$getDefaultDefinition$3(DeviceDefinitionList.java:171)
at java.base/java.util.Optional.orElseThrow(Unknown Source)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.getDefaultDefinition(DeviceDefinitionList.java:171)
at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Unknown Source)
at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(Unknown Source)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.setDefaultDevices(DeviceDefinitionList.java:154)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.<init>(DeviceDefinitionList.java:121)
at com.android.tools.idea.avdmanager.DeviceDefinitionList.<init>(DeviceDefinitionList.java:112)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionPanel.$$$setupUI$$$(ChooseDeviceDefinitionPanel.java)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionPanel.<init>(ChooseDeviceDefinitionPanel.java:39)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.createUIComponents(ChooseDeviceDefinitionStep.java:90)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.$$$setupUI$$$(ChooseDeviceDefinitionStep.java)
at com.android.tools.idea.avdmanager.ChooseDeviceDefinitionStep.<init>(ChooseDeviceDefinitionStep.java:45)
at com.android.tools.idea.avdmanager.AvdWizardUtils.createAvdWizard(AvdWizardUtils.java:237)
at com.android.tools.idea.devicemanager.virtualtab.BuildVirtualDeviceConfigurationWizardActionListener.actionPerformed(BuildVirtualDeviceConfigurationWizardActionListener.java:50)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:695)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:635)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:580)
at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:75)
at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:67)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:580)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:72)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:355)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:354)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:793)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:354)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:349)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1014)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1014)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:349)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:848)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:391)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
```
ju...@google.com <ju...@google.com> #15
Thank you very much for your help. I'm fairly confident I know what's going on now.
Do you have a custom device definition named "Pixel Tablet"? My custom definitions live at ${HOME}/.android/devices.xml. Delete it (we maintain an official one you can use) or rename it to prevent the uncaught exception.
I created a custom tablet definition named "Pixel Tablet". It doesn't have an ID, so code falls back to using the name as an ID. Surprisingly, it overrides the "pixel_tablet" ID we ship with. And then other code freaks out expecting to find "pixel_tablet" and failing because of the override.
That fallback behavior is surprising and confusing and I feel we should eliminate it. We should give every bundled device a unique ID. Devices that users create should also be given IDs. Whether we force them to be unique or let them override equal IDs is an open question.
ju...@google.com <ju...@google.com> #16
You can go back to the new device manager if you'd like. Let me know if you need help with that. Thank you!
br...@gmail.com <br...@gmail.com> #17
I don't know why it's even there, I haven't knowingly created it
Thank you!
ju...@google.com <ju...@google.com> #18
Thank you! I couldn't have figured this out without your help.
I'm downgrading this to a P2. There are real issues here that need to be fixed but I don't feel they take higher priority than my current work.
ju...@google.com <ju...@google.com> #19
I'm bumping this back to a P1. Now I'm operating under the assumption that Studio is somehow creating these user devices by itself and when they override the category defaults, other parts of Studio freak out.
I'm planning on delivering a small fix to make the freaking out part more robust but we should really figure out why these user devices are getting created in the first place
ju...@google.com <ju...@google.com>
ju...@google.com <ju...@google.com> #20
I'm now wondering if "Android TV (1080p)" comes from your system images. Can you send me a dump of your system-images directory? On Linux I would do
$ cd Android/Sdk/system-images/
$ find
.
./android-31
./android-31/android-tv
./android-31/android-tv/x86
./android-31/android-tv/x86/vendor.img
./android-31/android-tv/x86/package.xml
./android-31/android-tv/x86/build.prop
./android-31/android-tv/x86/encryptionkey.img
./android-31/android-tv/x86/source.properties
./android-31/android-tv/x86/advancedFeatures.ini
./android-31/android-tv/x86/NOTICE.txt
./android-31/android-tv/x86/data
./android-31/android-tv/x86/data/misc
./android-31/android-tv/x86/data/misc/apns
./android-31/android-tv/x86/data/misc/apns/apns-conf.xml
./android-31/android-tv/x86/data/misc/modem_simulator
./android-31/android-tv/x86/data/misc/modem_simulator/etc
./android-31/android-tv/x86/data/misc/modem_simulator/etc/modem_simulator
./android-31/android-tv/x86/data/misc/modem_simulator/etc/modem_simulator/files
./android-31/android-tv/x86/data/misc/modem_simulator/etc/modem_simulator/files/numeric_operator.xml
./android-31/android-tv/x86/data/misc/modem_simulator/iccprofile_for_sim0.xml
./android-31/android-tv/x86/data/misc/modem_simulator/iccprofile_for_carrierapitests.xml
./android-31/android-tv/x86/data/misc/emulator
./android-31/android-tv/x86/data/misc/emulator/config
./android-31/android-tv/x86/data/misc/emulator/config/radioconfig.xml
./android-31/android-tv/x86/data/misc/emulator/version.txt
./android-31/android-tv/x86/data/local.prop
./android-31/android-tv/x86/ramdisk.img
./android-31/android-tv/x86/userdata.img
./android-31/android-tv/x86/VerifiedBootParams.textproto
./android-31/android-tv/x86/system.img
./android-31/android-tv/x86/kernel-ranchu-64
On dir /b /s /a:-D
looks like the command to run.
sy...@gmail.com <sy...@gmail.com> #21
I have attached the system images dump from command prompt.
ju...@google.com <ju...@google.com> #22
That is extremely helpful, thank you so much!
sy...@gmail.com <sy...@gmail.com> #23
ju...@google.com <ju...@google.com> #24
For the record I'm pretty sure I found the root cause. I'm trying to ship a fix in Iguana.
sy...@gmail.com <sy...@gmail.com> #25
ju...@google.com <ju...@google.com> #26
That's good to know. When should we expect the Iguana stable release?
I'm genuinely sorry but as a matter of policy we don't make promises about release dates since plans can (and do) change. We try to release three times a year with regular cadence.
That said, the fix should be in the newest Jellyfish nightlies. It would be extremely helpful if you can take it for a spin and report back.
Thank you so much
sy...@gmail.com <sy...@gmail.com> #27
For the Jellyfish version, I have tested the emulator and it is working fine. I am attaching the screenshots for your reference.
Thank you.
an...@google.com <an...@google.com> #29
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 RC 1
- Android Gradle Plugin 8.3.0-rc01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
sy...@gmail.com <sy...@gmail.com> #30
No problem at all. I will try the stable when it is out as I prefer Stable
releases 😉
On Mon, Feb 5, 2024, 10:57 PM <buganizer-system@google.com> wrote:
an...@google.com <an...@google.com> #31
The fixes for this issue are now also available in:
- Android Studio Jellyfish | 2023.3.1 Canary 8
- Android Gradle Plugin 8.4.0-alpha08
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
In device manager I click the `+` button, but nothing happens
I would expect some dialog box to setup up a new device
STEPS TO REPRODUCE:
1. Navigate to Device manager
2. click `+`
3.
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build: hedgehog + iguana (both have the issue)
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS: MacOS Apple chip