当前位置:网站首页>Flutter mixed development module dependencies
Flutter mixed development module dependencies
2022-07-31 05:59:00 【work hard for today】
One: Create an android project.
Second: create flutter_libary


Three: configure flutter
1. The project's corresponding build.gradle
maven uses the aliyun image to prevent some finding problems.
allprojects {repositories {maven { url 'https://maven.aliyun.com/repository/public' }maven { url 'https://maven.aliyun.com/repository/public' }maven { url 'https://maven.aliyun.com/repository/google' }maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }maven { url 'https://storage.googleapis.com//download.flutter.io'}}}2. Setting.gradle corresponding to the project
setBinding(new Binding([gradle:this]))//flutter directoryevaluate(new File(settingsDir.parentFile,'flutter_library/.android/include_flutter.groovy'))new Binding([gradle:this]) If there is an error, identify the corresponding jar [package groovy.lang.Binding;]
groovy-all-1.3-2.5.12.jar
The gradle version I use is: 7.2-bin, the corresponding file directory, there is no such file
c\Users\user\.gradle\wrapper\dists\gradle-7.2-bin\2dnblmf4td7x66yl1d74lt32g\gradle-7.2\lib\
user --> the corresponding own account name
Solution: search for other versions.Find this file in ..\gradle-6.7\lib\groovy-all-1.3-2.5.12.jar and copy it to gradle-7.2\lib\groovy-all-1.3-2.5.12.jar
Need to restart androidstudio.
Add build.gradle in the 3.app directory
implementation project(':flutter')dependencies {...implementation project(':flutter')}4. Create activity : FlutterActivity【Java extends】
import io.flutter.embedding.android.FlutterActivityclass FlutterActivityTest : FlutterActivity() {override fun onCreate(savedInstanceState: Bundle?) {super.onCreate(savedInstanceState)}}Real machine running
边栏推荐
- NFT:数字所有权的核心
- this points to the problem
- [Elastic-Job] Overview of Distributed Scheduling Tasks
- Android软件安全与逆向分析阅读笔记
- 【云原生】SQL(及存储过程)跑得太慢怎么办?
- The server time zone value ‘й‘ is unrecognized or represents more than one time zone
- kotlin 插件更新到1.3.21
- [Cloud native] Open source data analysis SPL easily copes with T+0
- 微信小程序启动优化
- Getting to know regular expressions
猜你喜欢

通信原理——纠错编码 | 汉明码(海明码)手算详解
![[uiautomation] Get WeChat friend list (stored in txt)](/img/26/1f3424c5998c52c6e10ced8529012a.png)
[uiautomation] Get WeChat friend list (stored in txt)

【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了

MySQL高级SQL语句(二)

flutter 混合开发 module 依赖

一文速学-玩转MySQL获取时间、格式转换各类操作方法详解
![[windows]--- SQL Server 2008 super detailed installation tutorial](/img/b7/dc802c63b07edc4298b6e6b90d865c.png)
[windows]--- SQL Server 2008 super detailed installation tutorial

GUCCI, LV and other luxury giant universe how to layout yuan, other brands should keep up with?

Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'

mac10.14中安装mysqldb
随机推荐
Fragmented NFT (Fractional NFT)
mac10.14中安装mysqldb
podspec 校验依赖出错问题 pod lib lint ,需要指定源
configure:error no SDL library found
mysql常用命令
MySql to create data tables
阿里一面,说说你知道消息中间件的应用场景有哪些?
数字孪生将成为进入“元宇宙”一项重要的途径
this指向问题
MySQL分页查询的5种方法
Pure shell implementation of text replacement
纯shell实现文本替换
cocoscreator 显示刘海内容
mysql启动报错The server quit without updating PID file几种解决办法
Getting to know regular expressions
[JVM Loading]---Class Loading Mechanism
Build DVWA with phpstudy
On the side of Ali, tell me what are the application scenarios of message middleware you know?
quick-3.5 无法正常显示有混合纹理的csb文件
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'