android 开发 测试给日志 怎么看,android 日志 1--基本测试

', both forms being equivalent. For example, to launch

the AVD named 'foo', type:

emulator @foo

The 'android' helper tool can be used to manage virtual devices.

For example:

android create avd -n -t 1  # creates a new virtual device.

android list avd                   # list all virtual devices available.

Try 'android --help' for more commands.

Each AVD really corresponds to a content directory which stores

persistent and writable disk images as well as configuration files.

Each AVD must be created against an existing SDK platform or add-on.

For more information on this topic, see -help-sdk-images.

SPECIAL NOTE: in the case where you are *not* using the emulator

with the Android SDK, but with the Android build system, you will

need to define the ANDROID_PRODUCT_OUT variable in your environment.

See -help-build-images for the details.

这样就差不多了,先试试看。

-------------------------------------------------------------------

还行,不错

android create avd -n hello -t 1

emulator @hello

就可以启动了

只是启动有些慢,我还以为程序死了呢。试了下一些基本功能,我的天啊,这手机也太厉害了吧。。。。有钱了我也买一个,呵呵。

-------------------------------------------------------------------

上面的方法建立的 avd 在 ~/.android 目录下,可是只是一个 virtrul device, 不是用来写程序的。

仔细看了看 android -h 的输出,原来是用 android create project 来建立项目。这个命令还是需要好多参数的,我做测试就用

android create project -k cn.cublog.drunkedcat -n hello2 -a test1 -t 3 -p test1

这几个还都是必须的参数的,

-k 是 package

-n 是项目名称,这个可选

-a 是 activity 的名字

-t 是 target id, 这个不知道是干什么用的

-p 是项目放的位置,找个地方放就是了

如何写程序和生成可用的模块呢?后面再接着学。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值