当前位置:网站首页>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
边栏推荐
- MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案
- this points to the problem
- Pure shell implementation of text replacement
- 【Elastic-Job】分布式调度任务概览篇
- 对js的数组的理解
- [swagger close] The production environment closes the swagger method
- 微信小程序启动优化
- "limit" query in Oracle database
- 2021美赛C题M奖思路
- flutter arr 依赖
猜你喜欢

【uiautomation】微信好友列表获取(存储到txt中)

计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)

【云原生】开源数据分析 SPL 轻松应对 T+0

【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】

2021美赛C题M奖思路

MySQL高级学习笔记

Build DVWA with phpstudy

Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?

【swagger关闭】生产环境关闭swagger方法

How MySQL - depots table?A look at will understand
随机推荐
js中的全局作用域与函数作用域
Year-end summary - the years are quiet~
年终总结——岁月静好~
小白学爬虫——爬虫入门
Fragmented NFT (Fractional NFT)
configure:error no SDL library found
Yuan prospect and four track of the universe
quick lua加密
kotlin 插件更新到1.3.21
mysql启动报错The server quit without updating PID file几种解决办法
安装Multisim出现 No software will be installed or removed解决方法
UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装
数据库 | SQL增删改查基础语法
【云原生】SQL(及存储过程)跑得太慢怎么办?
File operations in C language (1)
一文速学-玩转MySQL获取时间、格式转换各类操作方法详解
[swagger close] The production environment closes the swagger method
【Elastic-Job】分布式调度任务概览篇
quick-3.5 lua调用c++
configure:error no SDL library found