Reaction Native Android应用程序在调试模式下工作得很好,但当我们发布apk时,它会生成旧版本的应用程序.
安卓/build.gradle:
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 32
targetSdkVersion = 32
googlePlayServicesAuthVersion = "16.0.1"
kotlin_version='1.6.0' //add This change version with your installed kotlin version
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.0.2")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" //add This
classpath 'com.google.gms:google-services:4.3.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
Android/grdle/Gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip