Fluttle 生成apk

585 2019-01-22 08:33:29

E:\Program Files\Android\Android Studio\jre\bin>keytool -genkey -v -keystore d:/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
输入密钥库口令:
再次输入新口令:
您的名字与姓氏是什么?
  [Unknown]:  xu
您的组织单位名称是什么?
  [Unknown]:  testCompany
您的组织名称是什么?
  [Unknown]:  testCompany
您所在的城市或区域名称是什么?
  [Unknown]:  bj
您所在的省/市/自治区名称是什么?
  [Unknown]:  bj
该单位的双字母国家/地区代码是什么?
  [Unknown]:  cn
CN=xu, OU=garavo, O=garavo, L=bj, ST=bj, C=cn是否正确?
  [否]:  y

正在为以下对象生成 2,048 位RSA密钥对和自签名证书 (SHA256withRSA) (有效期为 10,000 天):
         CN=xu, OU=garavo, O=garavo, L=bj, ST=bj, C=cn
输入 <key> 的密钥口令
        (如果和密钥库口令相同, 按回车):
[正在存储d:/key.jks]

E:\Program Files\Android\Android Studio\jre\bin>cd e:/flutter

e:\Flutter>flutter build apk
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.

e:\Flutter>cd myapp

e:\Flutter\myapp>flutter build apk
Initializing gradle...                                       1.6s
Resolving dependencies...                                    9.0s
Gradle task 'assembleRelease'...
Calling mockable JAR artifact transform to create file: C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\android.jar\02baf070ad29e1332e38a4456f7c7e78\android.jar with input C:\Users\Administrator\AppData\Local\Android\Sdk\platforms\android-27\android
.jar
Gradle task 'assembleRelease'... Done                       58.7s
Built build\app\outputs\apk\release\app-release.apk (4.8MB).
用户评价