一 、flutter开发Build failed due to use of deprecated Android v1 embedding错误的解决方法
1 android:name="${applicationName}"
2 android:exported="true"
3 ext.kotlin_version = '1.6.10'
4 classpath 'com.android.tools.build:gradle:4.1.0'
5 sdk: ">=2.16.1 <3.0.0"
6 出现Error: Member not found: 'packageRoot’问题的解决方案执行命令flutter pub upgrade
7 compileSdkVersion flutter.compileSdkVersion
8 app.dart -> (BuildContext context,Widget? child)=>MaterialApp()
二、Flutter构建Android Release包出现 Could not resolve all artifacts for configuration。
在 android目录下的gradle.propertie加上:android.jetifier.blacklist=bcprov-jdk15on
网友评论