Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行android应用程序需要互联网吗_Android - Fatal编程技术网

运行android应用程序需要互联网吗

运行android应用程序需要互联网吗,android,Android,我是Android的第一个。我只是尝试使用emulator运行应用程序 但即使在20分钟后也不会启动emulator 在此之后,我的控制台处于空闲状态: [2011-07-12 16:02:01 - HelloAndroid] ------------------------------ [2011-07-12 16:02:01 - HelloAndroid] Android Launch! [2011-07-12 16:02:01 - HelloAndroid] adb is running

我是Android的第一个。我只是尝试使用emulator运行应用程序 但即使在20分钟后也不会启动emulator

在此之后,我的控制台处于空闲状态:

[2011-07-12 16:02:01 - HelloAndroid] ------------------------------
[2011-07-12 16:02:01 - HelloAndroid] Android Launch!
[2011-07-12 16:02:01 - HelloAndroid] adb is running normally.
[2011-07-12 16:02:01 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-07-12 16:02:01 - HelloAndroid] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'My_MOB'
[2011-07-12 16:02:01 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2011-07-12 16:02:01 - HelloAndroid] Installing HelloAndroid.apk...
[2011-07-12 16:02:11 - HelloAndroid] Success!
[2011-07-12 16:02:11 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device emulator-5554
[2011-07-12 16:02:13 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroid }
我最后几条logcat消息

07-12 16:49:36.699: DEBUG/dalvikvm(447): GC_EXPLICIT freed 17K, 6% free 6320K/6663K, paused 5ms+3ms
07-12 16:53:51.885: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 16:58:51.942: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:03:52.000: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:08:16.900: INFO/dalvikvm(184): Jit: resizing JitTable from 512 to 1024
07-12 17:08:52.032: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:13:52.050: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:18:52.113: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:23:42.420: DEBUG/dalvikvm(184): GC_CONCURRENT freed 397K, 9% free 6696K/7303K, paused 4ms+3ms
07-12 17:23:52.161: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
07-12 17:25:05.390: DEBUG/dalvikvm(86): GC_CONCURRENT freed 1649K, 62% free 13465K/34695K, paused 6ms+8ms
07-12 17:28:52.210: DEBUG/SntpClient(86): request time failed: java.net.SocketException: Address family not supported by protocol
我今天上网很差,这是原因吗? 还有其他问题吗

帮我从混乱中恢复过来!
谢谢

根本不需要互联网。

一定还有别的事。你看到logcat了吗?它说什么?

这个日志显示您的项目正常运行。还有一件事是,在这个hello word中,您不需要任何internet连接internet是不必要的! 要在Logcat中查看,请单击窗口->显示视图->Logcat(如果没有,请在其他中查找)。
并复制粘贴红色的东西。

在启动应用程序在AVD上运行之前,是否单独启动AVD emulator。要启动AVD,您不需要I-net连接,当您的应用程序处理外部web内容时,它是必需的。

什么是logcat。哪里可以看到它“根本不需要Internet”。我们不能这样说。如果应用程序访问Internet,那么当然需要Internet。在eclipse中,进入
窗口
ShowView
其他
,然后选择
Android
LogCat
。在这里,您可以看到设备/仿真器产生的不同日志消息这些天,Hello World可能涉及到Internet连接;-)但是希拉格是对的,至少他的活动应该被启动并在模拟器中出现。@sheikh:非常感谢。我的日志猫列出了消息的数量。但最后两条消息是07-12 16:33:51.751:DEBUG/SntpClient(86):请求时间失败:java.net.SocketException:Address系列不受协议支持此logcat显示您的项目正常运行。还有一件事是,在此hello word中,您不需要任何internet连接。您能告诉我您的emulator屏幕上显示了什么内容吗?您的emulator未启动或您的应用程序未启动在模拟器上启动看起来很正常。尝试重新启动eclipse并重新加载仿真器?@scorpio,@nikki:仿真器未根据此行
启动,使用运行兼容AVD的现有仿真器“emulator-5554”
仿真器正在运行。到底怎么了?你看到了什么/没有看到什么?:我意识到我没有启动avd emulater。但是程序没有在模拟器中运行。请帮助我解释我的任务,首先解释你的工作流程以了解你缺少的内容,一步一步地像启动Eclipse、打开窗口>Android SDK和avd管理器、创建新的avd等等。。。。