文献:http://www.verydemo.com/demo_c131_i32411.html
Android初次使用遇到的两个问题
Android是谷歌在自己手机上面推出的一个开发平台,初次使用,遇到了两个问题。
问题一:Still no compatible AVDs with target 'Android 1.1': Aborting launch.
出错的原因是没有创建android模拟器,不过按照google的android文档中的HelloAndroid例子那样的一步一步进行,这个错误是不会发生的。
如何创建Android模拟器,这是摘自Android文档的一段话:
To create an AVD, use the "android" tool provided in the Android SDK. Open a command prompt or terminal, navigate to the tools/ directory in the SDK package and execute:
android create avd --target 2 --name my_avd
The tool now asks if you would like to create a custom hardware profile. For the time being, press Return to skip it ("no" is the default response). That's it. This configures an AVD named "my_avd" that uses the Android 1.5 platform. The AVD is now ready for use in the emulator.
In the above command, the --target option is required and specifies the deployment target to run on the emulator. The --name option is also required and defines the name for the new AVD.
大概意思是这样的:
使用Android开发工具中的android命令创建AVD(Android virtual devices)。打开系统命令提示窗口,将目录转移到Android安装目录中的tools下面,运行命令android create avd --target 2 --name my_avd,接下来会有一些设置,不用搭理,直接给个回车就行了(其中的target是android的id号,可以通过命令android list查询,name是创建模拟器的名字,自己随便给个)。
像这样创建了Android模拟器就不会在出错了。
如果使用过eclipse开发,这里还有更便捷的方法,点击eclipse工具栏中的手机符号
,将会弹出一个对话框如下,这里面就可以创建Android模拟器。
问题2:运行HelloAndroid时出现以下问题:
模拟器中没有出现期望中的界面,只显示“ANDROID ”,关掉模拟器后出现:
哎,网上很多人都喊啊,这是问题,我自己还以为也是问题,弄了半天,结果什么不是,原来是大伙在吓自己。Android这个东西运行停慢的,那个上面的5554是连接的端口号,所以并不是什么错误信息,当它正在连接时,你突然把它给终止,当然会出现上面那个错误了。大伙耐心地等待几分钟就没问题了。
Android是谷歌在自己手机上面推出的一个开发平台,初次使用,遇到了两个问题。
问题一:Still no compatible AVDs with target 'Android 1.1': Aborting launch.
出错的原因是没有创建android模拟器,不过按照google的android文档中的HelloAndroid例子那样的一步一步进行,这个错误是不会发生的。
如何创建Android模拟器,这是摘自Android文档的一段话:
引用
To create an AVD, use the "android" tool provided in the Android SDK. Open a command prompt or terminal, navigate to the tools/ directory in the SDK package and execute:
android create avd --target 2 --name my_avd
The tool now asks if you would like to create a custom hardware profile. For the time being, press Return to skip it ("no" is the default response). That's it. This configures an AVD named "my_avd" that uses the Android 1.5 platform. The AVD is now ready for use in the emulator.
In the above command, the --target option is required and specifies the deployment target to run on the emulator. The --name option is also required and defines the name for the new AVD.
大概意思是这样的:
使用Android开发工具中的android命令创建AVD(Android virtual devices)。打开系统命令提示窗口,将目录转移到Android安装目录中的tools下面,运行命令android create avd --target 2 --name my_avd,接下来会有一些设置,不用搭理,直接给个回车就行了(其中的target是android的id号,可以通过命令android list查询,name是创建模拟器的名字,自己随便给个)。
像这样创建了Android模拟器就不会在出错了。
如果使用过eclipse开发,这里还有更便捷的方法,点击eclipse工具栏中的手机符号
,将会弹出一个对话框如下,这里面就可以创建Android模拟器。
问题2:运行HelloAndroid时出现以下问题:
模拟器中没有出现期望中的界面,只显示“ANDROID ”,关掉模拟器后出现:
哎,网上很多人都喊啊,这是问题,我自己还以为也是问题,弄了半天,结果什么不是,原来是大伙在吓自己。Android这个东西运行停慢的,那个上面的5554是连接的端口号,所以并不是什么错误信息,当它正在连接时,你突然把它给终止,当然会出现上面那个错误了。大伙耐心地等待几分钟就没问题了。
1 楼 lich0079 2010-01-13
受不了啊 等了1分钟
相关推荐
AndroidStudio使用遇到的各种问题及解决方案汇总.docx
Android使用DrawerLayout创建左右两个抽屉菜单
Android源程序实现两个Activity之间的跳转
Android下ProgressBar和旗下两个子控件的使用,具体可参见博客http://www.cnblogs.com/plokmju/p/android_ProgressBar.html
android两个app实现跳转.rar,太多无法一一验证是否可用,程序如果跑不起来需要自调,部分代码功能进行参考学习。
android两列显示两个listview
Android 两个gallery同时滑动
PCL for Android 编译过程遇到的问题及办法。如有问题请留言
两个android设备连接同一wifi,分别安装两个apk,实现将一个设备的屏幕投射给另一个android设备,视频码率清晰度可配置。
两个手机之间必须连接同一个局域网,IP为局域网的IP
android socket编程实现同一台PC两个模拟器间的通信 包含server和client两个工程,外加一个说明文档,绝对可用 希望对大家有用
这是一个android两个activity的例子,从跟着网上的教程做的。
使用Volley StringRequest和JsonObjectRequest遇到的一些问题。博客地址:http://blog.csdn.net/onlysnail/article/details/47905375
Android中两个子线程的通信demo
主要是自己在使用Eclipse进行android开发时遇到的一些问题的总结,不一定对每个版本都有用,但是至少可以提供一些参考价值。会不断更。
Android-NDK环境的搭建及遇到的问题详解
android两个服务相互检测,一个掉了,另一个会把对方启动起来
存在的问题:在真机测试时,我的手机安卓9,在使用addNetwork()方法时功能是正常的,当换一个手机的时候(Android10)时发现连接WiFi的功能无法使用,在网上查阅资料,后发现安卓9和安卓10的连接WiFi的方法不一样...
android 同一个activty中两个listview横向显示,左边listview下方按钮动态添加item,右边listview中可删除某一项
android中使用jni返回两数之和,用C编写