栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

无法建立发布版APK

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

无法建立发布版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。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/427739.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号