当前位置:网站首页>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
边栏推荐
- Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
- [Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
- 对js的数组的理解
- Access database query
- MySQL高级语句(一)
- podspec自动化升级脚本
- [windows]--- SQL Server 2008 super detailed installation tutorial
- SQLite 查询表中每天插入的数量
- Detailed explanation of pointers in C language
- cocos create EditBox 输入文字被刘海屏遮挡修改
猜你喜欢

NFT:数字所有权的核心

Gradle sync failed: Uninitialized object exists on backward branch 142

腾讯云GPU桌面服务器驱动安装

Common JVM interview questions and answers

Artifact SSMwar exploded Error deploying artifact.See server log for details
![[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?](/img/40/be3a30743ee2bc6c82f82ab852f29c.png)
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?

Linux modify MySQL database password

Why is the redis single-threaded also so fast?

Build DVWA with phpstudy

flutter 混合开发 module 依赖
随机推荐
Common JVM interview questions and answers
UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装
cocos2d-x-3.2 不能混合颜色修改
数据库 | SQL查询进阶语法
理解js运算符
"limit" query in Oracle database
configure:error no SDL library found
sql 添加 default 约束
The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
The latest MySql installation teaching, very detailed
【云原生】开源数据分析 SPL 轻松应对 T+0
mysql password modification method in Linux (pro-test available)
quick-3.5 lua调用c++
Why does read in bash need to cooperate with while to read the contents of /dev/stdin
常见JVM面试题及答案整理
Sqlite A列数据复制到B列
MySQL面试题大全(陆续更新)
flutter arr 依赖
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
sql 外键约束【表关系绑定】