关于 flutter 1.12.13 打包arr不依赖本地的仓库跟以前一样直接依赖aar
step1:
找到flutter根目录下的build/host/outputs/repo,将flutter_release-1.0.aar复制到android项目下
step2:
找到flutter根目录下的build/host/outputs/repo, 将flutter_release-1.0.pom,里面有如下flutter基础库的地址
<dependency>
<groupId>io.flutter</groupId>
<artifactId>flutter_embedding_release</artifactId>
<version>1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.flutter</groupId>
<artifactId>armeabi_v7a_release</artifactId>
<version>1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c</version>
<scope>compile</scope>
</dependency>
step3:
/app/build.gradle下添加
repositories {
maven {
本地repo
}
maven {
url 'http://download.flutter.io'
}
}
dependencies {
implementation(name: 'flutter_release-1.0', ext: 'aar')
implementation 'io.flutter:flutter_embedding_release:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c'
implementation 'io.flutter:armeabi_v7a_release:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c'
}