java.lang.RuntimeException: java.lang.ClassCastException: com.android.tools.idea.run.ConnectedAndroidDevice cannot be cast to com.android.ddmlib.IDevice

GitHub | SUPERCILEX | 3 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassCastException on Device Selection screen (Android 2.2)

    GitHub | 9 months ago | danielesegato
    java.lang.RuntimeException: java.lang.ClassCastException: com.android.tools.idea.run.ConnectedAndroidDevice cannot be cast to com.android.ddmlib.IDevice
  2. 0

    NoSuchMethodException in Android Studio 2.2

    GitHub | 11 months ago | Pitel
    org.joor.ReflectException: java.lang.NoSuchMethodException: No similar method canRunOnDevice with params [class com.android.sdklib.AndroidVersion, class com.android.sdklib.repository.targets.PlatformTarget, class java.util.RegularEnumSet, class com.android.ddmlib.Device, class org.joor.Reflect$NULL] could be found on type class com.android.tools.idea.run.LaunchCompatibility.
  3. 0

    GitHub comment 12#279170107

    GitHub | 3 months ago | SUPERCILEX
    java.lang.RuntimeException: java.lang.ClassCastException: com.android.tools.idea.run.ConnectedAndroidDevice cannot be cast to com.android.ddmlib.IDevice
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.android.tools.idea.run.ConnectedAndroidDevice cannot be cast to com.android.ddmlib.IDevice

      at com.developerphil.adbidea.compatibility.CanRunOnDeviceCompat.getCurrentImplementation()
    2. com.developerphil.adbidea
      MyDeviceChooser$MyDeviceTableModel.getValueAt
      1. com.developerphil.adbidea.compatibility.CanRunOnDeviceCompat.getCurrentImplementation(CanRunOnDeviceCompat.java:29)
      2. com.developerphil.adbidea.compatibility.CanRunOnDeviceCompat.getCurrentImplementation(CanRunOnDeviceCompat.java:12)
      3. com.developerphil.adbidea.compatibility.BackwardCompatibleGetter.get(BackwardCompatibleGetter.java:12)
      4. com.developerphil.adbidea.ui.MyDeviceChooser$MyDeviceTableModel.getValueAt(MyDeviceChooser.java:422)
      4 frames
    3. Java RT
      JTable.getValueAt
      1. javax.swing.JTable.getValueAt(JTable.java:2717)
      1 frame
    4. Openapi
      JBTable.getRowHeight
      1. com.intellij.ui.table.JBTable.calculateRowHeight(JBTable.java:162)
      2. com.intellij.ui.table.JBTable.getRowHeight(JBTable.java:141)
      2 frames
    5. Java RT
      JComponent.paintComponent
      1. javax.swing.JTable.rowAtPoint(JTable.java:2869)
      2. javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1781)
      3. javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
      4. javax.swing.JComponent.paintComponent(JComponent.java:780)
      4 frames
    6. Openapi
      JBTable.paintComponent
      1. com.intellij.ui.table.JBTable.paintComponent(JBTable.java:263)
      1 frame
    7. Java RT
      JComponent.paint
      1. javax.swing.JComponent.paint(JComponent.java:1056)
      1 frame
    8. Openapi
      JBTable.paint
      1. com.intellij.ui.table.JBTable.paint(JBTable.java:362)
      1 frame
    9. Java RT
      JViewport.paint
      1. javax.swing.JComponent.paintChildren(JComponent.java:889)
      2. javax.swing.JComponent.paint(JComponent.java:1065)
      3. javax.swing.JViewport.paint(JViewport.java:728)
      3 frames
    10. IDEA
      JBViewport.paint
      1. com.intellij.ui.components.JBViewport.paint(JBViewport.java:285)
      1 frame
    11. Java RT
      EventQueue.dispatchEvent
      1. javax.swing.JComponent.paintChildren(JComponent.java:889)
      2. javax.swing.JComponent.paint(JComponent.java:1065)
      3. javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
      4. javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
      5. javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
      6. javax.swing.RepaintManager.paint(RepaintManager.java:1272)
      7. javax.swing.JComponent._paintImmediately(JComponent.java:5158)
      8. javax.swing.JComponent.paintImmediately(JComponent.java:4969)
      9. javax.swing.RepaintManager$4.run(RepaintManager.java:831)
      10. javax.swing.RepaintManager$4.run(RepaintManager.java:814)
      11. java.security.AccessController.doPrivileged(Native Method)
      12. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      13. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
      14. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
      15. javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
      16. javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
      17. javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
      18. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
      20. java.awt.EventQueue.access$500(EventQueue.java:98)
      21. java.awt.EventQueue$3.run(EventQueue.java:715)
      22. java.awt.EventQueue$3.run(EventQueue.java:709)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      25. java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
      25 frames
    12. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.k(IdeEventQueue.java:827)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:655)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
      3 frames
    13. Java RT
      Dialog.show
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
      4. java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
      5. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
      6. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
      9. java.awt.Dialog.show(Dialog.java:1084)
      9 frames
    14. IDEA
      DialogWrapper.show
      1. com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:735)
      2. com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:457)
      3. com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1688)
      4. com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1637)
      4 frames
    15. com.layernet.adbwifi
      AdbAction.actionPerformed
      1. com.layernet.adbwifi.AdbWifiConnect.askUserForDevice(AdbWifiConnect.java:100)
      2. com.layernet.adbwifi.AdbWifiConnect.getDevice(AdbWifiConnect.java:74)
      3. com.layernet.adbwifi.AdbWifiConnect.executeOnDevice(AdbWifiConnect.java:31)
      4. com.layernet.adbwifi.AdbWifiConnect.adbWifi(AdbWifiConnect.java:27)
      5. com.layernet.adbwifi.AdbWifiAction.actionPerformed(AdbWifiAction.java:9)
      6. com.layernet.adbwifi.AdbAction.actionPerformed(AdbAction.java:13)
      6 frames
    16. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:208)
      2. com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:224)
      3. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:570)
      4. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:619)
      5. com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:202)
      6. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:618)
      7. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:477)
      8. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)
      9. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:633)
      10. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
      10 frames
    17. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames