应用程序包:https ://developer.android.com/guide/app-bundle/这允许 Google Play 管理签名,减小应用程序大小,并允许按需提取代码,这真的很棒!
我尝试进行设置,但 Android Studio 一直告诉我需要更新我的 gradle 版本?
这是我的 build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
task wrapper(type: Wrapper) {
gradleVersion = '4.4' //version required
}
buildscript {
repositories {
/**
* Must stay in this order
*/
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
}
}
subprojects {
afterEvaluate { project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
}
}
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url "$rootDir/../node_modules/react-native/android" }
mavenCentral()
}
}
ext {
buildToolsVersion = "26.0.3"
minSdkVersion = 16
compileSdkVersion = 26
targetSdkVersion = 26
supportLibVersion = "26.1.0"
}
我可以使用应用程序包吗?还是我必须等到 RN 社区支持才安装?