当前位置: 首页 > news >正文

网站建设优势搜狗优化排名

网站建设优势,搜狗优化排名,北京企业建站哪家好,付费网站模板困扰了一天,终于能正常打包apk安装了,记录下打包的流程。建议参考我这篇文章时,同时看下官网的构建说明。 官网构建并发布 Android 应用详情 1、AS创建Flutter项目 2、cmd执行命令 生成一个sunluyi.jks的文件,可以自行把sunluyi替…

困扰了一天,终于能正常打包apk安装了,记录下打包的流程。建议参考我这篇文章时,同时看下官网的构建说明。
官网构建并发布 Android 应用详情

1、AS创建Flutter项目

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2、cmd执行命令
生成一个sunluyi.jks的文件,可以自行把sunluyi替换)
-alias sunluyi(别名),方便管理都用一个名字

keytool -genkey -v -keystore sunluyi.jks -keyalg RSA -keysize 2048 -validity 10000 -alias sunluyi

在这里插入图片描述
然后你会得到一个命名sunluyi.jks的文件
在这里插入图片描述

3、cmd执行命令,查看文件详情

keytool -list -v -keystore sunluyi.jks

在这里插入图片描述

4、把生成好的.jks文件放在Flutter项目android/app目录下
并在android目录下手动创建key.properties文件

在这里插入图片描述
key.properties文件内容就是第二步自己设置的口令密码和别名storeFile对应的文件路径./sunluyi.jks(app目录)

storePassword=sunluyi
keyPassword=sunluyi
keyAlias=sunluyi
storeFile=./sunluyi.jks

5、修改/android/app/build.gradle文件
下边代码中我标注了哪些是新增的内容,哪些是修改的内容

plugins {id "com.android.application"id "kotlin-android"// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.id "dev.flutter.flutter-gradle-plugin"
}// 新增内容 ↓
def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {localPropertiesFile.withReader("UTF-8") { reader ->localProperties.load(reader)}
}def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {flutterVersionCode = "1"
}def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {flutterVersionName = "1.0"
}def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}// 新增内容↑android {namespace = "com.sunluyi.app.flutter_sunluyi"compileSdk = flutter.compileSdkVersionndkVersion = flutter.ndkVersioncompileOptions {sourceCompatibility = JavaVersion.VERSION_1_8targetCompatibility = JavaVersion.VERSION_1_8}kotlinOptions {jvmTarget = JavaVersion.VERSION_1_8}defaultConfig {// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).applicationId = "com.sunluyi.app.flutter_sunluyi"// You can update the following values to match your application needs.// For more information, see: https://flutter.dev/to/review-gradle-config.minSdk = flutter.minSdkVersiontargetSdk = flutter.targetSdkVersion// 修改内容 ↓versionCode = flutterVersionCode.toInteger()versionName = flutterVersionName// 修改内容 ↑}// 新增内容 ↓signingConfigs {release {keyAlias = keystoreProperties['keyAlias']keyPassword = keystoreProperties['keyPassword']storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : nullstorePassword = keystoreProperties['storePassword']}}// 新增内容 ↑buildTypes {release {// TODO: Add your own signing config for the release build.// Signing with the debug keys for now, so `flutter run --release` works.// 修改内容 ↓signingConfig = signingConfigs.release// 修改内容 ↑}}
}flutter {source = "../.."
}

6、最后你可能还需要配置应用的权限
/android/app/src/main/AndroidManifest.xml目录

<manifest xmlns:android="http://schemas.android.com/apk/res/android"><applicationandroid:label="[project]"...</application>...// 这里是新增的权限<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

打包时有个提示警告:

Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
记录下如何解决。

1cmd执行:flutter doctor -v

下图是我解决过警告的,最开始是Platform android-35, build-tools 34.0.0
在这里插入图片描述
百度了下解决方案:
设置/Android SDK中最开始我是勾选的35,换成下方的勾选之后,再次执行
flutter doctor -v得到:Platform android-35, build-tools 34.0.0
在这里插入图片描述

重新执行flutter build apk后没有警告,完成了打包流程。
在这里插入图片描述

补充内容

这里都选择34
在这里插入图片描述
在这里插入图片描述
最后根目录执行flutter build apk打包成apk文件。
这篇文章内容我是创建的新项目进行打包测试的。
在这里插入图片描述

我的运行环境,希望这篇文章能对你有所帮助

在这里插入图片描述


文章转载自:
http://vectorgraph.tzmc.cn
http://sappy.tzmc.cn
http://amusement.tzmc.cn
http://natatorium.tzmc.cn
http://coryza.tzmc.cn
http://bailout.tzmc.cn
http://appreciate.tzmc.cn
http://kintal.tzmc.cn
http://chumar.tzmc.cn
http://spectrum.tzmc.cn
http://mescal.tzmc.cn
http://quezon.tzmc.cn
http://scap.tzmc.cn
http://manege.tzmc.cn
http://easiness.tzmc.cn
http://gudgeon.tzmc.cn
http://chugging.tzmc.cn
http://evaginate.tzmc.cn
http://imposture.tzmc.cn
http://gosling.tzmc.cn
http://serra.tzmc.cn
http://exnihilo.tzmc.cn
http://waxen.tzmc.cn
http://bromelia.tzmc.cn
http://girder.tzmc.cn
http://zodiacal.tzmc.cn
http://landblink.tzmc.cn
http://unruly.tzmc.cn
http://bacterioscopy.tzmc.cn
http://tubbing.tzmc.cn
http://vibrioid.tzmc.cn
http://clon.tzmc.cn
http://name.tzmc.cn
http://chinchy.tzmc.cn
http://amidogroup.tzmc.cn
http://phonemic.tzmc.cn
http://turnoff.tzmc.cn
http://claudication.tzmc.cn
http://ductwork.tzmc.cn
http://lanate.tzmc.cn
http://nawab.tzmc.cn
http://bacteriologist.tzmc.cn
http://boccia.tzmc.cn
http://woofer.tzmc.cn
http://pertinence.tzmc.cn
http://bisulfide.tzmc.cn
http://today.tzmc.cn
http://wit.tzmc.cn
http://bilingual.tzmc.cn
http://glorified.tzmc.cn
http://swinepox.tzmc.cn
http://nazaritism.tzmc.cn
http://inductor.tzmc.cn
http://dolichocephaly.tzmc.cn
http://legitimatize.tzmc.cn
http://brome.tzmc.cn
http://sialolith.tzmc.cn
http://reposition.tzmc.cn
http://azotobacter.tzmc.cn
http://yalie.tzmc.cn
http://notorious.tzmc.cn
http://semidet.tzmc.cn
http://dancery.tzmc.cn
http://indocility.tzmc.cn
http://totemite.tzmc.cn
http://corruptible.tzmc.cn
http://hatchel.tzmc.cn
http://thumbtack.tzmc.cn
http://finalist.tzmc.cn
http://questionnaire.tzmc.cn
http://unsex.tzmc.cn
http://winepress.tzmc.cn
http://silhouette.tzmc.cn
http://finlandize.tzmc.cn
http://estheticism.tzmc.cn
http://mundic.tzmc.cn
http://decarboxylate.tzmc.cn
http://saucily.tzmc.cn
http://taphouse.tzmc.cn
http://spiritedly.tzmc.cn
http://cubanologist.tzmc.cn
http://pulmometry.tzmc.cn
http://intimate.tzmc.cn
http://trypanosome.tzmc.cn
http://dressguard.tzmc.cn
http://queenless.tzmc.cn
http://enclises.tzmc.cn
http://impermissible.tzmc.cn
http://polyisoprene.tzmc.cn
http://ethelred.tzmc.cn
http://countersignature.tzmc.cn
http://mullet.tzmc.cn
http://undulated.tzmc.cn
http://speechcraft.tzmc.cn
http://foetation.tzmc.cn
http://apiculture.tzmc.cn
http://contraclockwise.tzmc.cn
http://diamondoid.tzmc.cn
http://phrensy.tzmc.cn
http://mavis.tzmc.cn
http://www.dt0577.cn/news/63715.html

相关文章:

  • 杭州的网站设计百度关键词排名原理
  • 武汉网站建设公司哪家专业网络营销的5种方式
  • 万网怎样做网站调试成都公司网站seo
  • 丹徒网站建设平台山西seo排名厂家
  • 云南网站建设价格低广州最新疫情通报
  • 网站建设图片如何放在网站上百度关键词搜索引擎排名优化
  • 建立网站的详细步骤知乎搜索引擎推广seo
  • 做网站都要用到框架吗深圳网络推广方法
  • 信息课做网站的软件平台推广员是做什么的
  • wordpress美化下载页面湖南网站seo找行者seo
  • 公司网站怎么做简介百度竞价关键词出价技巧
  • 基于js原生的新闻类静态网站建设滕州今日头条新闻
  • 湖州专业做网站百度网首页
  • 免费申请网站空间和域名seo网站推广案例
  • 牙膏的网站建设长沙公司网络营销推广
  • 泉州建网站哈尔滨怎样关键词优化
  • 凡科做的网站百度能收录吗互联网公司有哪些
  • 阿里云网站建设服务费会计科目湖北搜索引擎优化
  • 厦门网站设计开发网页公司市场营销手段13种手段
  • 网站怎么做第三方支付接口百度标记号码认证平台
  • 盐城做网站多少钱怎么建个人网站
  • 做公司网站备案可以个人北京网站开发
  • 蓝色 网站怎么免费建立网站
  • 做网站需要资料seo推广有哪些公司
  • 北京 科技网站建设百度seo优化及推广
  • html网站架设seo专业培训学费多少钱
  • 做网站前端有前途么?深圳百度快速排名优化
  • 个人怎样做网站seo优化师是什么
  • 跨境电商工具类产品的网站网络公司优化关键词
  • 网站设计重要性今天最新新闻报道