是运行Android应用程序所必需的Internet

时间:2011-07-12 10:54:32

标签: android

我是Android的第一人。我只是尝试使用模拟器运行Hello word应用程序 但即使在20分钟后也不会启动模拟器。

我的控制台在此之后空闲:

[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

我今天的网络连接很差,这是什么原因? 任何其他问题

帮助我从困惑中恢复过来! 感谢

4 个答案:

答案 0 :(得分:1)

根本不需要互联网。
必须有别的东西。你看到logcat了吗?这是什么意思?

答案 1 :(得分:0)

此logcat显示您的项目正常运行。还有一件事就是在这个问候语中你不需要任何互联网连接

答案 2 :(得分:0)

互联网不是必需的! 要在Logcat中查看,请单击Window - >显示视图 - > Logcat(如果没有,请在其他地方找到)。 并复制粘贴红色的东西..

答案 3 :(得分:0)

在启动应用程序以在AVD上运行AVD之前,您是否单独启动AVD仿真器。要启动AVD,您不需要I-net连接,当您的应用程序对外部Web内容执行某些操作时,它是必需的。