无法建立发布版APK

无法建立发布版APK,第1张

无法建立发布版APK

事实证明,处理此问题的最佳方法是在中进行以下更改

android/app/build.gradle

android {    compileSdkVersion 26    buildToolsVersion '26.0.3'    lintOptions {        disable 'InvalidPackage'    }    defaultConfig {        applicationId "com.example.app"        minSdkVersion 16        targetSdkVersion 26        versionCode 1        versionName "1.0"        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"    }    signingConfigs {        release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword']        }    }    // This is the main section that I've updated    // to get the release APK to build    buildTypes {        release { profile {     matchingFallbacks = ['debug', 'release'] } signingConfig signingConfigs.release        }    }}flutter {    source '../..'}dependencies {    testImplementation 'junit:junit:4.12'    androidTestImplementation 'com.android.support.test:runner:1.0.1'    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'}apply plugin: 'com.google.gms.google-services'

通过此更改,我能够构建发行版APK。



欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5090540.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-16
下一篇2022-11-16

发表评论

登录后才能评论

评论列表(0条)

    保存