当前位置:网站首页>flutter arr 依赖
flutter arr 依赖
2022-07-31 05:15:00 【为今天而努力】
一:准备android工程
二:准备flutter_library,及 arr 包
1.使用命令行生成 flutter_library 【模块名称】,建议在android 同级目录创建
flutter create -t module flutter_library
android studio创建: flutter 混合开发 module 依赖_为今天而努力的博客-CSDN博客
2.生成 aar 包 命令如下
flutter build apk --debug // 测试版本
flutter build apk--release // 发布版本
flutter-debug 对应目录 .android/Flutter/build/outputs/aar/
三:android studio 工程接入
1.flutter-debug.aar 包导入 libs 目录
2.app 目录build.gradle 添加依赖
// 方式一
dependencies {
...
implementation files('libs/flutter-debug.aar')
}
// 方式二
repositories {
flatDir { dirs 'libs' }
}
dependencies {
...
implementation(name: 'flutter-debug', ext: 'aar')
}3.libflutter.so 找不到问题解决
解压生成的apk,找到对应的 libflutter.so,复制到对应工程的目录。
64版本对应 arm64-v8a
libs-->arm64-v8a // 64位
-->arm64-v7a // 32位
-->x86 // 手机模拟器
apk 对应目录:flutter_library\build\host\outputs\apk\debug\app-debug.apk

module 方式依赖:flutter 混合开发 module 依赖_为今天而努力的博客-CSDN博客
边栏推荐
- 什么是 GameFi?
- Error: Cannot find module ‘D:\Application\nodejs\node_modules\npm\bin\npm-cli.js‘
- Android软件安全与逆向分析阅读笔记
- 腾讯云GPU桌面服务器驱动安装
- CMOS管原理,及其在推挽电路中的应用
- MySQL高级SQL语句(二)
- 【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
- Yuan prospect and four track of the universe
- The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
- 2021面经-拥抱变化
猜你喜欢

The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r

利用phpstudy搭建DVWA

leetcode-每日一题735. 行星碰撞(栈模拟)

通信原理——纠错编码 | 汉明码(海明码)手算详解

CMOS管原理,及其在推挽电路中的应用

GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?

MySQL高级SQL语句(二)

Yuan prospect and four track of the universe

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

leetcode-829. 连续整数求和(数论)
随机推荐
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
数据库 | SQL增删改查基础语法
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
Install mysqldb in mac10.14
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
2021美赛C题M奖思路
PHP中abstract(抽象)、final(最终)和static(静态)原理与用法
通信原理——纠错编码 | 汉明码(海明码)手算详解
【swagger关闭】生产环境关闭swagger方法
元宇宙的前景及四大赛道
代码块、Package,Import,封装(第六天)
Year-end summary - the years are quiet~
永恒之蓝漏洞复现
代码执行漏洞
leetcode-829. 连续整数求和(数论)
数字取证autopsy工具用法
MySQL面试题大全(陆续更新)
"limit" query in Oracle database
腾讯云GPU桌面服务器驱动安装
MySQL高级SQL语句(二)