gpt4 book ai didi

android - 无法在 Android 设备选择器中找到 Android L(预览版)模拟器

转载 作者:行者123 更新时间:2023-11-29 15:58:53 26 4
gpt4 key购买 nike

我创建了一个示例 Android(L 预览版)应用程序,其最低 SDK 版本和目标 SDK 版本为 21。

<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="21" />

为了测试应用程序,我根据以下规范创建了 Android L 模拟器。

设备:Nexus 5

目标:Android L 预览

CPU/ABI:英特尔凌动 x86

皮肤WQVGA400

内存:2048 虚拟机堆:64

仿真选项:选中快照,未选中主机 GPU。

当我尝试运行该应用程序时,Android 设备选择器对话框中未显示模拟器。

enter image description here

我还需要做些什么吗?

谢谢

最佳答案

对于 AndroidL,您需要将 minSdkVersiontargetSdkVersion 写入 L 而不是 21

<uses-sdk
android:minSdkVersion="L"
android:targetSdkVersion="L" />

来自 Setting Up the Preview SDK documentation

你需要做的

  • compileSdkVersion 设置为'android-L'
  • minSdkVersion 设置为“L”
  • targetSdkVersion 设置为“L”

设置构建目标

Right click on Project -> Property -> Select "Android" section -> Check "Android L (Preview)" into Project Build Target section.

And then clean your project.

关于android - 无法在 Android 设备选择器中找到 Android L(预览版)模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25927389/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com