alibaba / alibaba/flutter_boost
[Bug]: 不显示flutter_boost模块
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### 请描述遇到的问题,以及您所期望的正确的结果
问题:
1、集成flutter_boost,原生Android项目中一直不显示flutter_bost模块,只显示了flutter模块
2、同步过程中一直提示Namespace not specified.,实际情况是Android项目已设置namespace
3、如果不依赖flutter_boost,项目可以正常运行。
相关库版本信息
1、引入flutter_boost:4.4.0
2、flutter版本:3.13.1
3、gradle版本:gradle-8.0-bin.zip
4、setting.gradle增加引入源码
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
include ':flutter_module'
setBinding(new Binding([gradle: this]))
evaluate(new File(
settingsDir.parentFile,
'flutter_module/.android/include_flutter.groovy'
))
project(':flutter_module').projectDir = new File('../flutter_module')
### 请说明如何操作会遇到上述问题
1、引入flutter_boost,执行pub get
在flutter项目中引入flutter_boost
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: '4.4.0'
2、Android项目setting.gradle指定文件路径
include ':flutter_module'
setBinding(new Binding([gradle: this]))
evaluate(new File(
settingsDir.parentFile,
'flutter_module/.android/include_flutter.groovy'
))
project(':flutter_module').projectDir = new File('../flutter_module')
3、Android的app层级下build.gradle增加flutter源码依赖,sync项目
implementation project(':flutter')
implementation project(':flutter_boost')
4、经过以上步骤,项目中已显示flutter模块,但是一直没有flutter_boost模块,且一直提示Namespace not specified
### 在下面填入关键复现代码
```
```
### 复现的平台
Android
### Flutter SDK版本
3.13.1
### FlutterBoost版本
4.4.0
### 是否延迟初始化FlutterBoost
No
### 解决方案
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Android integration with Flutter 3.13.1, FlutterBoost 4.4.0, and Gradle 8.0, starting with the reported sync failure. Inspect setting.gradle, the app-level build.gradle, and flutter_module/.android/include_flutter.groovy to trace why flutter_boost is absent and why the namespace warning appears. Done means the flutter_boost module is shown and the namespace warning is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter, groovy
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100