Platform id package: Android-O is not available

When trying to clone an Android O sample from github, the project cannot sync and give below errors. Android Studio provides an unavailable package that cannot install the missing platform (android o).

Missing Android O Package

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

Can anyone suggest how I can run a cloned example?

+5
source share
1 answer

To add Android O elements to Android Studio 2.3, I had to temporarily switch to the Channel Channel in Android Studio:

Android Studio Channel Settings

Then, in the SDK manager, I could load the O Developer preview items:

SDK Manager, Showing O Developer Preview 1

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

SDK Manager, Showing SDK Tools Tab

This should help you overcome your current problems.

This project is corrupted because it refers to @mipmap/ic_launcher , which does not exist. You need to get rid of android:icon="@mipmap/ic_launcher" from the <application> Application/src/main/AndroidManifest.xml element, after which the application will work.

+7
source

Source: https://habr.com/ru/post/1265795/


All Articles