什么是android SDK 24的buildToolsVersion? [英] What is the buildToolsVersion for android SDK 24?

查看:154
本文介绍了什么是android SDK 24的buildToolsVersion?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对此我无话可说.那好吧.Google发布了一个新版本的Android,称为Nougat(android N).它是compileSdkVersion24.但是,在官方文档的构建工具页面上,它不是提及.

There's not much I can say about this. Oh well. Google released a new version of android called Nougat (android N). It is compileSdkVersion 24. However, on the build tools page in the official documentation, it is not mentioned.

我想将我的应用程序分发给100%使用Google Play商店的用户,其中包括android N用户.

I want to give my app to 100% of the people using Google Play Store, which includes android N users.

tl; dr:我应该在buildToolsVersion字段中填写什么?

tl;dr: What should I fill in the buildToolsVersion field?

谢谢.

推荐答案

buildToolsVersion 应该设置为 25 25.0.0 ,如下所示:如下所示:

buildToolsVersion should be set to 25 and 25.0.0, as seen below:

compileSdkVersion 25
buildToolsVersion '25.0.0'
useLibrary 'org.apache.http.legacy'

defaultConfig {
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
}

您可以从Android Studio中的SDK Manager获取最新的buildToolsVersion.

You can get the latest buildToolsVersion from SDK Manager in Android Studio.

这篇关于什么是android SDK 24的buildToolsVersion?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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