我是android开发新手。
我昨天安装了Android Studio。
我的问题是
why when I try to run logcat ,get no device on dialog box of [choose device]
option >>
choose a running device.
奇怪的是-
I have avd [Nexus 5 API 21 x86] but appears only in dialog box of [choose device]
option >>
launch emulator.
my code:
public class MainActivity extends ActionBarActivity {
public static final String MY_TAG = "The_Custom_Message";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.i(MY_TAG,"on_Create");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
// ... etc
The_Custom_Message是我的logcat过滤器标签
我的logcat过滤器名称是MyMessages
请帮帮我…
为什么当我尝试运行logcat时,在[选择]对话框中没有设备设备)
创建Android虚拟设备。http://developer.android.com/tools/devices/managing-avds.html
我已经安装了[Nexus 5 API 21 x86],但只出现在[选择设备]对话框中
你可以使用这个AVD [Nexus 5 API 21 x86]来测试你的应用程序,如果你没有任何物理设备连接。
您需要将移动设备连接到机器,以便能够在DDMS透视图中查看设备。此外,请确保USB调试选项为您要查看的设备启用。