运行报错....这是什么问题?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)
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)
运行发现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>
解决办法:在AVD Manage里面,全部删掉,再重写配置一个Device。
是 Unable to find explicit activity class
Unable to find explicit activity class {com.alven.view.test/com.alven.view.test.Control_activity}你重复了....你把整个的贴出来看看 还是你的manifest 写的有问题啊