运行报错....这是什么问题?Unexpected error while launching logcat. Try reselecting the device.]device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:319)
at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:100)
at java.lang.Thread.run(Unknown Source)

解决方案 »

  1.   

    其他的估计没什么问题  
    运行发现manifest.xml文件下<activity>android::name不对
    Unable to find explicit activity class {com.alven.view.test/com.alven.view.test.Control_activity}
    可是我的src目录下确实包含Control_activity这个文件啊,而且它所在的包是com.alven.view.test
    就是搞不懂为什么前面还有“com.alven.view.test/”下面是manifest        <activity
        android:name=".View_testActivity"
                android:label="@string/app_name"
                android:theme="@android:style/Theme.NoTitleBar" >
                <intent-filter >
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
      
      

  2.   

    device not found意思就是你的手机 或者 Android模拟器没有找到,或者你没有指定,
    解决办法:在AVD Manage里面,全部删掉,再重写配置一个Device。
      

  3.   

    不是 device not found
    是  Unable to find explicit activity class
      

  4.   


    Unable to find explicit activity class {com.alven.view.test/com.alven.view.test.Control_activity}你重复了....你把整个的贴出来看看 还是你的manifest 写的有问题啊
      

  5.   

    在properties里面重新选择一下android的虚拟设备,然后clean一下,试试, 我刚刚试过,可以运行了