shenghy / my-blog

我的博客系统
22 stars 8 forks source link

[Vssue]Flutter-base04 #10

Open shenghy opened 5 years ago

shenghy commented 5 years ago

http://new.jspang.com/posts/2019/02/01/flutter-base4.html

carryLess commented 5 years ago

@ibyli

老师我这怎么回事

PS E:\flutter\my_app> flutter build apk Initializing gradle... 1.2s Resolving dependencies... 7.6s

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:validateSigningRelease'.

    Keystore file 'D:\key.jks \key.jks?????????����????' not found for signing config 'release'.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 5s Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done 6.3s Gradle task assembleRelease failed with exit code 1

你的key.properties文件里面那些中文没删掉吧

z234009184 commented 5 years ago

Flutter客户端打包 的视频不对!重复了,讲的还是图片资源的引入。。。

wwb568109135 commented 5 years ago

flutter build apk 打包 就直接成功了,为什么? https://www.bilibili.com/video/av35800108/?p=25 没有按照课程里配置那样去做!

Say-me-cool commented 5 years ago

void main(){ runApp(MaterialApp( title: '数据传递', home:Products( products: List.generate(10, (i) => Product('商品$i', '编号为:$i')), ), )); }

如果在同一页面 是不是不能定义 两个 上面 这样的, 我把 main 改成mains 之后 数据就不显示了

think-of-xiao commented 5 years ago

用大神的方式在目录名带空格的用单引号括住还是不能识别,最后是直接在keytool.exe所在目录下直接打开命令行窗口输入keytool.exe -genkey -v -keystore 要生成的keystore存放目录\key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias keystore的别名(随便取英文名),然后设置一些属性就完美创建了

15128238220 commented 5 years ago

ios包有没有教程呢?技术胖大哥

SycamoreChina commented 5 years ago

技术胖老湿,请问一下 我打包成功了! ........ 但是安装使用后 所有引用的网络图片都不显示。 据说是要开启权限,请问哪里配置才对~~~~

Jzhuonan commented 5 years ago

感谢老哥分享的 flutter 知识,很有帮助。

zmxpro commented 5 years ago

Flutter客户端打包的教学视频不对,显示的是静态资源和项目图片的处理视频

Hbuilderx commented 5 years ago

打包生产的apk无法安装是怎么回事?

zhangzhengyi12 commented 5 years ago

也看了不少了 必须上来评论一下

课程很棒,至少比我再掘金上买的20块钱小册强了10倍 还是免费的

逻辑清晰 循序渐进 👍🏻

0123cf commented 5 years ago

因为我们还没有生命这个组件或者说是类

错别字哦

elainema commented 5 years ago

@z234009184

Flutter客户端打包 的视频不对!重复了,讲的还是图片资源的引入。。。

老师什么时候更新一下~~~

elainema commented 5 years ago

在哔哩哔哩找到了打包的视频: https://www.bilibili.com/video/av35800108/?p=25

AuXue commented 5 years ago

老师,我这边打包报错 key.properties文件里面也没有中文 这个怎么解决啊 通过Android studio 也可以正常跑起来 You are building a fat APK that includes binaries for android-arm, android-arm64. If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size. To generate an app bundle, run: flutter build appbundle --target-platform android-arm,android-arm64 Learn more on: https://developer.android.com/guide/app-bundle To split the APKs per ABI, run: flutter build apk --target-platform android-arm,android-arm64 --split-per-abi Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split Initializing gradle... 0.7s Resolving dependencies... 1.4s Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 2.1s Gradle task assembleRelease failed with exit code 1

wumo1016 commented 5 years ago

@Say-me-cool

void main(){ runApp(MaterialApp( title: '数据传递', home:Products( products: List.generate(10, (i) => Product('商品$i', '编号为:$i')), ), )); }

如果在同一页面 是不是不能定义 两个 上面 这样的, 我把 main 改成mains 之后 数据就不显示了

@Hbuilderx

打包生产的apk无法安装是怎么回事?

myyue214 commented 5 years ago

图片加载报错:Unable to load asset: xxx.png 解决方法

pubspec.yaml中书写不规范。不规范的缩进和字符都可能导致配置的内容不生效。要注意yaml的一个缩进是2个空格,不要用tab或4个空格