如何在android studio中添加android target/api android-26? [英] How to add android target / API android-26 in android studio?

查看:450
本文介绍了如何在android studio中添加android target/api android-26?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android开发工具的新手,我将尝试cordova使用网络技术开发android应用程序,但是当我使用comand cordova要求时,结果就是这样

I am new in android development tools and I'm about to try cordova to develop android app using web technologies, but when i use the comand cordova requirements the result is this

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
Please install Android target / API level: "android-26".

Hint: Open the SDK manager by running: "C:\Users\json\AppData\Local\Android\sdk\tools\android.bat"
You will require:
1. "SDK Platform" for API level android-26
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-4.1\bin\gradle

当我安装android studio时,默认API为android-27,我不知道如何添加android-26 API.请帮忙.

When i installed the android studio the default API is android-27 and i dont know how to add android-26 API. Please help.

推荐答案

macOS上的Android Studio在偏好设置...">外观和功能"下具有平台设置.行为>系统设置> Android SDK> SDK平台标签.检查具有API级别26的Android 8.0(Oreo),然后单击应用"安装了该软件包,现在需求检查通过如下:

Android Studio on macOS has platform settings at Preferences... > Appearance & Behavior > System Settings > Android SDK > SDK Platform tab. Checking Android 8.0 (Oreo) having the API level 26 and clicking Apply installed the package and now the requirements check passes as follows:

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-27,android-26
Gradle: installed /Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle

希望这也适用于Windows.

Hope this works on Windows as well.

这篇关于如何在android studio中添加android target/api android-26?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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