当前位置:网站首页>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
边栏推荐
- 2021美赛C题M奖思路
- Build vulhub vulnerability shooting range on kali
- [Elastic-Job source code analysis] - job listener
- 【Elastic-Job】分布式调度任务概览篇
- 最新MySql安装教学,非常详细
- cocoscreator3.5.2打包微信小游戏发布到QQ小游戏修改
- [Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
- [windows]--- SQL Server 2008 super detailed installation tutorial
- C language tutorial (1) - preparation
- 微信小程序启动优化
猜你喜欢

安装Multisim出现 No software will be installed or removed解决方法

自定dialog 布局没有居中解决方案

MySQL高级学习笔记

Artifact SSMwar exploded Error deploying artifact.See server log for details

DeFi 项目中的治理Token

Eternal blue bug reappears
Getting to know regular expressions

Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
![[uiautomation] Get WeChat friend list (stored in txt)](/img/26/1f3424c5998c52c6e10ced8529012a.png)
[uiautomation] Get WeChat friend list (stored in txt)

【swagger关闭】生产环境关闭swagger方法
随机推荐
Digital twins will be an important way to enter the "metaverse"
带你搞懂MySQL隔离级别,两个事务同时操作同一行数据会怎样?
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
js中的break与continue退出
How to distinguish big and small endian in C language
数字孪生将成为进入“元宇宙”一项重要的途径
File operations in C language (1)
Filter out egrep itself when using ps | egrep
Build DVWA with phpstudy
Why is the redis single-threaded also so fast?
cocoscreator 显示刘海内容
Why does read in bash need to cooperate with while to read the contents of /dev/stdin
flutter 混合开发 module 依赖
MySQL-如何分库分表?一看就懂
sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
mysql common commands
Fragmented NFT (Fractional NFT)
Yuan prospect and four track of the universe
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]