包 ID 平台:android-O 不可用 [英] Package id platform: android-O not available

查看:37
本文介绍了包 ID 平台:android-O 不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试从 github 克隆

我正在使用 android studio 2.3 并克隆 android o 示例:https://developer.android.com/preview/o-samples.html#nc

任何人都可以建议,我怎样才能运行克隆的例子?

解决方案

为了将 Android O 项添加到 Android Studio 2.3,我不得不暂时切换到 Android Studio 中的 Canary 频道:

然后,在 SDK Manager 中,我可以下载 O Developer Preview 项目:

...连同 26-rc1 构建工具、平台工具和模拟器:

这应该能让您解决当前的问题.

那个项目搞砸了,因为它引用了一个不存在的@mipmap/ic_launcher.您需要从 Application/src/main/AndroidManifest.xml 的 元素中删除 android:icon="@mipmap/ic_launcher",之后应用程序似乎可以运行了.

While trying to clone Android O sample from github, project can't able to sync and give below error. Android studio give package unavailable, which can't able to install missing platform (android o).

I am using android studio 2.3 and cloning android o example: https://developer.android.com/preview/o-samples.html#nc

Can any one suggest, how can I able to run cloned example?

解决方案

To add the Android O items to Android Studio 2.3, I had to temporarily switch to the Canary channel in Android Studio:

Then, in the SDK Manager, I could download the O Developer Preview items:

...along with the 26-rc1 build tools, platform tools, and emulator:

That should get you past your current problems.

That project is messed up, in that it refers to a @mipmap/ic_launcher that does not exist. You need to get rid of android:icon="@mipmap/ic_launcher" from the <application> element of Application/src/main/AndroidManifest.xml, after which the app appears to work.

这篇关于包 ID 平台:android-O 不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆