当前位置:网站首页>flutter arr dependencies
flutter arr dependencies
2022-07-31 05:58:00 【work hard for today】
One: Prepare the android project
Two: Prepare the flutter_library, and the arr package
1. Use the command line to generate the flutter_library [module name], it is recommended to create it in the same level directory of android
flutter create -t module flutter_library
android studio creation: Flutter Hybrid Development Module Dependencies 2. The command to generate aar package is as follows Three: android studio project access 3.libflutter.so could not find the problem solution
flutter build apk --debug // test version
flutter build apk--release // release version
flutter-debug corresponding directory.android/Flutter/build/outputs/aar/
1.flutter-debug.aar package import libs directory
2.app directory build.gradle add dependencies// Method 1dependencies {...implementation files('libs/flutter-debug.aar')}// method tworepositories {flatDir { dirs 'libs' }}dependencies {...implementation(name: 'flutter-debug', ext: 'aar')}
Unzip the generated apk, find the corresponding libflutter.so, and copy it to the directory of the corresponding project.
64 version corresponds to arm64-v8a
libs-->arm64-v8a // 64-bit
-->arm64-v7a // 32-bit
-->x86 // mobile phone emulator
apk corresponding directory: flutter_library\build\host\outputs\apk\debug\app-debug.apk
module mode dependency: flutter hybrid development module dependency_Blog for today - CSDN Blog
边栏推荐
猜你喜欢
Common JVM interview questions and answers
DeFi Token in the project management
【云原生】开源数据分析 SPL 轻松应对 T+0
代码块、Package,Import,封装(第六天)
Linux中mysql密码修改方法(亲测可用)
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
Access database query
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
Using IIS10 to build an asp website in win11
随机推荐
flutter 混合开发 module 依赖
What is the difference between NFT and digital collection?
js中的this指向与原型对象
MySQL-如何分库分表?一看就懂
cocos2d-x-3.2 不能混合颜色修改
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
数据库 | SQL查询进阶语法
【windows】--- SQL Server 2008 超详细安装教程
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
[Elastic-Job] Overview of Distributed Scheduling Tasks
小米手机短信定位服务激活失败
Eternal blue bug reappears
Judgment of database in SQL injection
碎片化NFT(Fractional NFT)
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
永恒之蓝漏洞复现
SQL注入中数据库的判断
cocos2d-x 实现跨平台的目录遍历
Xiaobai learns reptiles - introduction to reptiles
js中流程控制语句