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

GitHub | SUPERCILEX | 2 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

    GitHub comment 12#279170107

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

    ClassCastException on Device Selection screen (Android 2.2)

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

    Automated exception search integrated into your IDE

  4. 0

    NoSuchMethodException in Android Studio 2.2

    GitHub | 10 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.
  5. 0

    Device chooser is broken on AS 1.5 RC1

    GitHub | 1 year ago | IronBlossom
    java.lang.NoSuchMethodError: com.android.tools.idea.run.LaunchCompatibility.canRunOnDevice(Lcom/android/sdklib/AndroidVersion;Lcom/android/sdklib/IAndroidTarget;Ljava/util/EnumSet;Lcom/android/ddmlib/IDevice;Lcom/android/sdklib/IAndroidTarget;)Lcom/android/tools/idea/run/LaunchCompatibility;

    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
      DefaultListSelectionModel.setSelectionInterval
      1. javax.swing.JTable.getRowHeight(JTable.java:992)
      2. javax.swing.JTable.getCellRect(JTable.java:2937)
      3. javax.swing.JTable.valueChanged(JTable.java:4698)
      4. javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
      5. javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
      6. javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
      7. javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
      8. javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
      9. javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
      9 frames
    6. com.developerphil.adbidea
      MyDeviceChooser$6.run
      1. com.developerphil.adbidea.ui.MyDeviceChooser.refreshTable(MyDeviceChooser.java:296)
      2. com.developerphil.adbidea.ui.MyDeviceChooser.access$600(MyDeviceChooser.java:68)
      3. com.developerphil.adbidea.ui.MyDeviceChooser$6.run(MyDeviceChooser.java:275)
      3 frames
    7. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:315)
      2. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:410)
      3. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
      3 frames
    8. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
      3. java.awt.EventQueue.access$500(EventQueue.java:98)
      4. java.awt.EventQueue$3.run(EventQueue.java:715)
      5. java.awt.EventQueue$3.run(EventQueue.java:709)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
      8 frames
    9. 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
    10. 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
    11. 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
    12. 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
    13. 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
    14. 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