flutter开发插件是导入AAR包出现错误

flutter开发插件时导入AAR包出现错误:flutter Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar
flutter开发插件是导入AAR包出现错误_第1张图片

android开发插件时无法正常引用aar包

原因:插件无法识别aar包

解决办法:

1: 修改引用 implementation fileTree(include: ‘*.aar’, dir: ‘ ’)
2: 在gradle.properties文件中添加android.enableDexingArtifactTransform=false

3:在dependencies中添加compileOnly files(‘libs/your.aar’)

你可能感兴趣的:(aar,android,flutter)