当前位置:网站首页>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隔离级别,两个事务同时操作同一行数据会怎样?
- What is an EVM Compatible Chain?
- "limit" query in Oracle database
- 【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
- Understanding SSRF, this article is enough
- The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
- GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?
- SQLite 查询表中每天插入的数量
- sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
- sql 外键约束【表关系绑定】
猜你喜欢
![[windows]--- SQL Server 2008 super detailed installation tutorial](/img/b7/dc802c63b07edc4298b6e6b90d865c.png)
[windows]--- SQL Server 2008 super detailed installation tutorial

mac10.14中安装mysqldb

The server time zone value ‘й‘ is unrecognized or represents more than one time zone

最新MySql安装教学,非常详细

Year-end summary - the years are quiet~

小米手机短信定位服务激活失败

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

MySQL面试题大全(陆续更新)

Build DVWA with phpstudy

What is an EVM Compatible Chain?
随机推荐
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
Detailed explanation of pointers in C language
Attribute Changer的几种形态
DeFi Token in the project management
数据库 | SQL查询进阶语法
Linux修改MySQL数据库密码
SQLite 查询表中每天插入的数量
mac10.14中安装mysqldb
Yuan prospect and four track of the universe
Sqlite A列数据复制到B列
Why is the redis single-threaded also so fast?
[Cloud native] Open source data analysis SPL easily copes with T+0
[JVM Loading]---Class Loading Mechanism
数字孪生将成为进入“元宇宙”一项重要的途径
Why does read in bash need to cooperate with while to read the contents of /dev/stdin
quick-3.5 无法使用模拟器修改
微信小程序启动优化
quick-3.5 ActionTimeline的setLastFrameCallFunc调用会崩溃问题
UiBot has an open Microsoft Edge browser and cannot perform the installation
Build DVWA with phpstudy