【问题标题】:Installing Android SDK Components安装 Android SDK 组件
【发布时间】:2015-06-06 15:22:17
【问题描述】:

帮助我开始使用 Android Studio... 我刚刚安装了 Android Studio Bundle(将近 850 mb)。 比我安装了一些 SDK 组件,如图所示...

在我启动 android studio 并编译默认源代码之后 我明白了:

然后当我执行它时,它会显示:

如何正确输出?

【问题讨论】:

  • android studio 的版本是多少

标签: android android-sdk-tools


【解决方案1】:

ActionBarActivity 类引人注目,因为该类已被弃用。从 22.1.0 版本开始使用 AppCompatActivity。更多信息在这里:http://developer.android.com/tools/support-library/index.html 和这里:http://android-developers.blogspot.com/2015/04/android-support-library-221.html

对于模拟器上的输出,启动和模拟为 android 需要时间。你应该耐心等待。 :) Personnaly,我从来没有成功地在我的 Windows 机器上运行 android 模拟器。我总是像你一样得到输出。但是当我在我的 Linux 机器上安装 android studion 时,我第一次启动它只花了我大约 2-5 分钟。所以你现在知道你必须做什么了。 :)

【讨论】:

  • TNX 兄弟....我解决了 ActionBarActivity deprecated 错误...bt hw long 我应该等待获得输出.. 几乎我等了 10 分钟
  • 很高兴你现在解决了你的错误@Deepak :)。为了使 Android 模拟器运行得更快、响应更快,您可以将其配置为利用硬件加速,结合使用配置选项、特定的 Android 系统映像和硬件驱动程序。阅读此处的操作指南developer.android.com/tools/devices/emulator.html#accel-vm,了解如何在您的 Windows 机器上配置和使用硬件加速。
【解决方案2】:

它的模拟器,它可能需要一些时间来启动和模拟为 android。 读取模拟器后,您的应用程序将作为应用程序而不是控制台执行,直到您使用 android API 发送日志输出,如“Log.d()”。

您应该开始培训并遵循 android 网站上的指南:http://developer.android.com/training/index.html

【讨论】:

    猜你喜欢
    • 2015-07-07
    • 2011-06-13
    • 1970-01-01
    • 2016-06-14
    • 1970-01-01
    • 2018-05-16
    • 2015-10-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多